Skip to content

Commit c25c3e0

Browse files
committed
feat: correct the way of frame all
1 parent 663f468 commit c25c3e0

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Editor/Scripts/GraphView/PlayableGraphView.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using GBG.PlayableGraphMonitor.Editor.Node;
22
using GBG.PlayableGraphMonitor.Editor.Utility;
33
using System.Collections.Generic;
4-
using UnityEditor;
54
using UnityEditor.Experimental.GraphView;
65
using UnityEngine;
76
using UnityEngine.Playables;
@@ -42,11 +41,7 @@ public void Update(PlayableGraph playableGraph)
4241

4342
if (needFrameAll)
4443
{
45-
// wait at least 2 frames for view initialization
46-
EditorApplication.delayCall += () =>
47-
{
48-
EditorApplication.delayCall += () => { FrameAll(); };
49-
};
44+
schedule.Execute(() => FrameAll());
5045
}
5146
}
5247

0 commit comments

Comments
 (0)