Przeglądaj źródła

STLExporter: Using world space matrices. Fixes #4502.

Mr.doob 11 lat temu
rodzic
commit
dc4dc2340a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      examples/js/exporters/STLExporter.js

+ 1 - 1
examples/js/exporters/STLExporter.js

@@ -41,7 +41,7 @@ THREE.STLExporter.prototype = {
 			mesh = meshes[i];
 			
 			geometry = mesh.geometry;
-			matrix = mesh.matrix;
+			matrix = mesh.matrixWorld;
 			position = mesh.position;
 			
 			for (j = 0; j < geometry.faces.length; j++) {