ncannasse 7 năm trước cách đây
mục cha
commit
cb85d0dc23
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      h3d/scene/pbr/Renderer.hx

+ 1 - 1
h3d/scene/pbr/Renderer.hx

@@ -266,7 +266,7 @@ class Renderer extends h3d.scene.Renderer {
 			resetTarget();
 			copy(hdr, null);
 			// no warnings
-			for( p in passObjects ) p.rendered = true;
+			for( p in passObjects ) if( p != null ) p.rendered = true;
 			return;
 		}