Selaa lähdekoodia

[scene] Fix light icons

Clément Espeute 6 kuukautta sitten
vanhempi
commit
7c1bdaa174
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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;
 			}
 		}
 	}