Browse Source

WebGLBackground: More robust scene handling.

Mr.doob 5 năm trước cách đây
mục cha
commit
b97af33123
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/renderers/webgl/WebGLBackground.js

+ 1 - 1
src/renderers/webgl/WebGLBackground.js

@@ -25,7 +25,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
 
 	function render( renderList, scene, camera, forceClear ) {
 
-		let background = scene.background;
+		let background = scene.isScene === true ? scene.background : null;
 
 		// Ignore background in AR
 		// TODO: Reconsider this.