Преглед на файлове

[shgraph] disable editor light icons in references

Clément Espeute преди 6 месеца
родител
ревизия
b91c1b35de
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      hrt/prefab/Light.hx

+ 3 - 1
hrt/prefab/Light.hx

@@ -179,7 +179,9 @@ class Light extends Object3D {
 		}
 
 		#if editor
-		icon = hrt.impl.EditorTools.create3DIcon(object, hide.Ide.inst.getHideResPath("icons/PointLight.png"), 0.5, Light);
+		if (shared.parentPrefab == null || Std.downcast(shared.parentPrefab, Reference)?.editMode) {
+			icon = hrt.impl.EditorTools.create3DIcon(object, hide.Ide.inst.getHideResPath("icons/PointLight.png"), 0.5, Light);
+		}
 		#end
 
 		cookieTex = initTexture(cookiePath);