Browse Source

Fixed not being able to paste as new layer without unselected member

CPKreuz 2 years ago
parent
commit
96f46d5ffe

+ 0 - 2
src/PixiEditor/Models/DocumentModels/Public/DocumentOperationsModule.cs

@@ -368,8 +368,6 @@ internal class DocumentOperationsModule
     /// <param name="startPos">Where the transform should start</param>
     /// <param name="startPos">Where the transform should start</param>
     public void PasteImageWithTransform(Surface image, VecI startPos, Guid memberGuid, bool drawOnMask)
     public void PasteImageWithTransform(Surface image, VecI startPos, Guid memberGuid, bool drawOnMask)
     {
     {
-        if (Document.SelectedStructureMember is null)
-            return;
         Internals.ChangeController.TryStartExecutor(new PasteImageExecutor(image, startPos, memberGuid, drawOnMask));
         Internals.ChangeController.TryStartExecutor(new PasteImageExecutor(image, startPos, memberGuid, drawOnMask));
     }
     }