Explorar o código

Fixed bug where last group in OBJ was not added.

Alexander %!s(int64=13) %!d(string=hai) anos
pai
achega
7a1daad979
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      examples/js/loaders/OBJMTLLoader.js

+ 4 - 1
examples/js/loaders/OBJMTLLoader.js

@@ -561,7 +561,10 @@ THREE.OBJMTLLoader.prototype = {
 			}
 			}
 
 
 		}
 		}
-
+		
+		//Add last object
+		meshN(undefined, undefined);
+		
 		return group;
 		return group;
 
 
 	}
 	}

粤ICP备19079148号