1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

Fixed setting to null during OnEnable

This commit is contained in:
Thor Brigsted 2018-12-11 01:30:43 +01:00 committed by GitHub
parent e6f5ac2d47
commit 58d962c404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ namespace XNode {
public static NodeGraph graphHotfix; public static NodeGraph graphHotfix;
protected void OnEnable() { protected void OnEnable() {
graph = graphHotfix; if (graphHotFix != null) graph = graphHotfix;
graphHotfix = null; graphHotfix = null;
UpdateStaticPorts(); UpdateStaticPorts();
Init(); Init();