diff --git a/Packages/com.acchosen.vr-stage-lighting/Editor/VRSL_ManagerWindow.cs b/Packages/com.acchosen.vr-stage-lighting/Editor/VRSL_ManagerWindow.cs index 8cf53b4..2ab7a67 100644 --- a/Packages/com.acchosen.vr-stage-lighting/Editor/VRSL_ManagerWindow.cs +++ b/Packages/com.acchosen.vr-stage-lighting/Editor/VRSL_ManagerWindow.cs @@ -577,9 +577,9 @@ public class AudioLinkListItem laser.ApplyProxyModifications(); #pragma warning restore 0618 //suppressing obsoletion warnings - if(PrefabUtility.IsPartOfAnyPrefab(light)) + if(PrefabUtility.IsPartOfAnyPrefab(laser)) { - PrefabUtility.RecordPrefabInstancePropertyModifications(light); + PrefabUtility.RecordPrefabInstancePropertyModifications(laser); } } @@ -4193,6 +4193,10 @@ public class VRSL_ManagerWindow : EditorWindow { EditorGUILayout.EndFoldoutHeaderGroup(); } } + if(fixture.isLaser && PrefabUtility.IsPartOfAnyPrefab(fixture.laser)) + { + PrefabUtility.RecordPrefabInstancePropertyModifications(fixture.laser); + } else if(PrefabUtility.IsPartOfAnyPrefab(fixture.light)) { PrefabUtility.RecordPrefabInstancePropertyModifications(fixture.light);