Pārlūkot izejas kodu

saving expose port on frame

Pamela Wolf 5 gadi atpakaļ
vecāks
revīzija
6ba52bff9e

+ 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) {