Clément Espeute пре 6 месеци
родитељ
комит
7c1bdaa174
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      hide/comp/Scene.hx

+ 2 - 1
hide/comp/Scene.hx

@@ -594,7 +594,8 @@ class Scene extends hide.comp.Component implements h3d.IDrawable {
 				renderProps.applyProps(s3d.renderer);
 
 			for (light in currentRenderProps.refInstance.findAll(hrt.prefab.Light, true)) {
-				@:privateAccess light.icon.visible = false;
+				if (@:privateAccess light.icon != null)
+					@:privateAccess light.icon.visible = false;
 			}
 		}
 	}