Browse Source

fix to auto expanding frames

Pamela Wolf 5 years ago
parent
commit
640e939ec6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nodeEditor/src/diagram/graphFrame.ts

+ 2 - 2
nodeEditor/src/diagram/graphFrame.ts

@@ -1266,7 +1266,7 @@ export class GraphFrame {
     }
 
     public dispose() {
-        this.isCollapsed = false;
+        //this.isCollapsed = false;
         
         this._nodes.forEach(node => {
             node.enclosingFrameId = -1;
@@ -1299,7 +1299,7 @@ export class GraphFrame {
             height: this._height,
             color: this._color.asArray(),
             name: this.name,
-            isCollapsed: false, //keeping closed to make reimporting cleaner
+            isCollapsed: true, //keeping closed to make reimporting cleaner
             blocks: this.nodes.map(n => n.block.uniqueId),
             comments: this._comments
         }