Ver código fonte

Fixed appending layer crash

flabbet 1 ano atrás
pai
commit
55965438c1

+ 1 - 4
src/PixiEditor.ChangeableDocument/Changes/Structure/CreateStructureMember_Change.cs

@@ -47,10 +47,7 @@ internal class CreateStructureMember_Change : Change
         List<IChangeInfo> changes = new() { CreateChangeInfo(member) };
         
         InputProperty<Texture> targetInput = parentNode.InputProperties.FirstOrDefault(x => 
-            x.ValueType == typeof(Texture) &&
-            x.Connection != null &&
-            x.Connection.Node is StructureNode) as InputProperty<Texture>;
-        
+            x.ValueType == typeof(Texture)) as InputProperty<Texture>;
         
         
         if (member is FolderNode folder)