Nodes - Fixed some connections not saving on dynamic incoming pins

Nodes - Fixed undo/redo when deleting a node with dynamic incoming pins
Nodes - Disabled layer property node for now until I have time to finish it
This commit is contained in:
Robert committed 2022-08-23 23:28:42 +02:00
1 parent c45e879eef
commit 30be7a9915
4 files changed
+26 -30

No files matched your search

@@ -341,8 +341,14 @@ public abstract class NodeScript : CorePropertyChanged, INodeScript, IStorageMod
private void SavePins(INode node, int collectionId, IEnumerable<IPin> pins)
{
int sourcePinId = 0;
foreach (IPin sourcePin in pins.Where(p => p.Direction == PinDirection.Input))
foreach (IPin sourcePin in pins)
{
if (sourcePin.Direction == PinDirection.Output)
{
sourcePinId++;
continue;
}
foreach (IPin targetPin in sourcePin.ConnectedTo)
{
int targetPinCollectionId = -1;