Преглед изворни кода

Make CSS2DRenderer respect scene.autoUpdate

donutcoffee пре 5 година
родитељ
комит
63ef42cd4d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      examples/js/renderers/CSS2DRenderer.js

+ 2 - 2
examples/js/renderers/CSS2DRenderer.js

@@ -161,8 +161,8 @@ THREE.CSS2DRenderer = function () {
 	};
 
 	this.render = function ( scene, camera ) {
-
-		scene.updateMatrixWorld();
+		
+		if (scene.autoUpdate === true) { scene.updateMatrixWorld(); }
 
 		if ( camera.parent === null ) camera.updateMatrixWorld();