mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user