浏览代码

saving expose port on frame

Pamela Wolf 5 年之前
父节点
当前提交
6ba52bff9e
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      nodeEditor/src/diagram/graphFrame.ts
  2. 1 0
      src/Materials/Node/nodeMaterialBlockConnectionPoint.ts

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

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

+ 1 - 0
src/Materials/Node/nodeMaterialBlockConnectionPoint.ts

@@ -461,6 +461,7 @@ export class NodeMaterialConnectionPoint {
             serializationObject.inputName = this.name;
             serializationObject.targetBlockId = this.connectedPoint.ownerBlock.uniqueId;
             serializationObject.targetConnectionName = this.connectedPoint.name;
+            serializationObject.isExposedOnFrame = true;
         }
 
         if (this.isExposedOnFrame) {