Browse Source

Update CSS2DRenderer.js

Syntax improved per request
donutcoffee 5 years ago
parent
commit
87955e087e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/renderers/CSS2DRenderer.js

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

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