Browse Source

Make CSS2DRenderer respect scene.autoUpdate

donutcoffee 5 years ago
parent
commit
63ef42cd4d
1 changed files with 2 additions and 2 deletions
  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();