1
0
mirror of https://github.com/AcChosen/VR-Stage-Lighting.git synced 2024-11-23 23:21:07 +01:00

Merge pull request #38 from mrTomatolegit/patch-1

fix audiolink laser handling in VRSL_ManagerWindow.cs
This commit is contained in:
AcChosen 2024-11-03 21:25:46 -05:00 committed by GitHub
commit 7344ae8a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);