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:
commit
7344ae8a0d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user