Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Fix scene getting dirtied redundantly
Browse files Browse the repository at this point in the history
- Fix placement of a `)` causing the scene to get dirtied needlessly whenever something with novariablesync was in the scene
  • Loading branch information
MerlinVR committed Jun 18, 2021
1 parent 8c371af commit a9642c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/UdonSharp/Editor/UdonSharpEditorManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ static void UpdateSyncModes(List<UdonBehaviour> udonBehaviours)
behaviourGameObjects.Add(behaviour.gameObject);

if (behaviour.Reliable == true &&
(programAsset.behaviourSyncMode == BehaviourSyncMode.Continuous) ||
programAsset.behaviourSyncMode == BehaviourSyncMode.NoVariableSync)
(programAsset.behaviourSyncMode == BehaviourSyncMode.Continuous ||
programAsset.behaviourSyncMode == BehaviourSyncMode.NoVariableSync))
{
behaviour.Reliable = false;
modificationCount++;
Expand Down

0 comments on commit a9642c0

Please sign in to comment.