Skip to content

Commit

Permalink
Fix issue for older Odin version
Browse files Browse the repository at this point in the history
  • Loading branch information
GolfNorth committed Feb 20, 2021
1 parent 5b42d2c commit ea2e190
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Editor/NodeEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public virtual void OnBodyGUI() {
}
catch ( ArgumentNullException )
{
#if ODIN_INSPECTOR_3
objectTree.EndDraw();
#else
InspectorUtilities.EndDrawPropertyTree(objectTree);
#endif
NodeEditor.DestroyEditor(this.target);
return;
}
Expand Down

0 comments on commit ea2e190

Please sign in to comment.