Skip to content

Commit

Permalink
Merge pull request #38 from mrTomatolegit/patch-1
Browse files Browse the repository at this point in the history
fix audiolink laser handling in VRSL_ManagerWindow.cs
  • Loading branch information
AcChosen authored Nov 4, 2024
2 parents 3e83cab + 20ffe1f commit 7344ae8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ public void ApplyChanges(VRStageLighting_AudioLink_Laser li)
laser.ApplyProxyModifications();
#pragma warning restore 0618 //suppressing obsoletion warnings

if(PrefabUtility.IsPartOfAnyPrefab(light))
if(PrefabUtility.IsPartOfAnyPrefab(laser))
{
PrefabUtility.RecordPrefabInstancePropertyModifications(light);
PrefabUtility.RecordPrefabInstancePropertyModifications(laser);
}
}

Expand Down Expand Up @@ -4193,6 +4193,10 @@ void OnGUI() {
EditorGUILayout.EndFoldoutHeaderGroup();
}
}
if(fixture.isLaser && PrefabUtility.IsPartOfAnyPrefab(fixture.laser))
{
PrefabUtility.RecordPrefabInstancePropertyModifications(fixture.laser);
} else
if(PrefabUtility.IsPartOfAnyPrefab(fixture.light))
{
PrefabUtility.RecordPrefabInstancePropertyModifications(fixture.light);
Expand Down

0 comments on commit 7344ae8

Please sign in to comment.