소스 검색

STLExporter: Using world space matrices. Fixes #4502.

Mr.doob 11 년 전
부모
커밋
dc4dc2340a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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++) {