Browse Source

STLExporter: Using world space matrices. Fixes #4502.

Mr.doob 11 years ago
parent
commit
dc4dc2340a
1 changed files with 1 additions and 1 deletions
  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++) {