Browse Source

Fixed duplicate crash

flabbet 7 months ago
parent
commit
c4f68b6780

+ 1 - 0
src/PixiEditor.ChangeableDocument/Changes/Structure/DuplicateLayer_Change.cs

@@ -40,6 +40,7 @@ internal class DuplicateLayer_Change : Change
 
         InputProperty<Painter?> targetInput = parent.InputProperties.FirstOrDefault(x =>
             x.ValueType == typeof(Painter) &&
+            x.Connection != null &&
             x.Connection.Node is StructureNode) as InputProperty<Painter?>;
 
         List<IChangeInfo> operations = new();