File tree Expand file tree Collapse file tree
CathodeLib/Scripts/CATHODE/Commands/Helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,11 +516,15 @@ public override void Read(BinaryReader reader)
516516 bool hasUnlinkedPins = reader . ReadBoolean ( ) ;
517517 if ( hasUnlinkedPins )
518518 {
519- FlowgraphMeta . NodeMeta . UnlinkedPinMeta pin = new FlowgraphMeta . NodeMeta . UnlinkedPinMeta ( ) ;
520- pin . ParameterGUID = Utilities . Consume < ShortGuid > ( reader ) ;
521- pin . PinLocation = reader . ReadByte ( ) ;
522- pin . PinStyle = reader . ReadByte ( ) ;
523- node . UnlinkedPins . Add ( pin ) ;
519+ int unlinkedCount = reader . ReadInt32 ( ) ;
520+ for ( int z = 0 ; z < unlinkedCount ; z ++ )
521+ {
522+ FlowgraphMeta . NodeMeta . UnlinkedPinMeta pin = new FlowgraphMeta . NodeMeta . UnlinkedPinMeta ( ) ;
523+ pin . ParameterGUID = Utilities . Consume < ShortGuid > ( reader ) ;
524+ pin . PinLocation = reader . ReadByte ( ) ;
525+ pin . PinStyle = reader . ReadByte ( ) ;
526+ node . UnlinkedPins . Add ( pin ) ;
527+ }
524528 }
525529
526530 flowgraph . Nodes . Add ( node ) ;
You can’t perform that action at this time.
0 commit comments