Explorar o código

CSS3DRenderer: improve visible consistance

troy351 %!s(int64=5) %!d(string=hai) anos
pai
achega
1a70d6d11a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      examples/jsm/renderers/CSS3DRenderer.js

+ 2 - 0
examples/jsm/renderers/CSS3DRenderer.js

@@ -217,6 +217,8 @@ var CSS3DRenderer = function () {
 
 			}
 
+			element.style.display = object.visible ? '' : 'none';
+			
 			if ( element.parentNode !== cameraElement ) {
 
 				cameraElement.appendChild( element );