Skip to content

Use the CLI paste when incoming masks have no bitmap (fix #5361)#5363

Closed
ckaiser wants to merge 1 commit into
aseprite:mainfrom
ckaiser:bitmapless-selection-v2-final-final
Closed

Use the CLI paste when incoming masks have no bitmap (fix #5361)#5363
ckaiser wants to merge 1 commit into
aseprite:mainfrom
ckaiser:bitmapless-selection-v2-final-final

Conversation

@ckaiser

@ckaiser ckaiser commented Aug 18, 2025

Copy link
Copy Markdown
Member

Fixes #5361, switches over to "CLI" pasting when the incoming mask has no bitmap, since that can cause problems with the interactive selection, I think this is cleaner than my previous attempt to prevent this kind of thing from getting into the clipboard in the first place, this way things can get pasted "properly" even if they're just a blank image with no selection.

@ckaiser ckaiser requested a review from dacap as a code owner August 18, 2025 07:00
@ckaiser ckaiser self-assigned this Aug 18, 2025
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@ckaiser ckaiser assigned dacap and unassigned ckaiser Aug 20, 2025
@dacap

dacap commented Sep 19, 2025

Copy link
Copy Markdown
Member

I was testing this and it shows the following error after running the script in the given issue in an empty sprite (a new sprite with transparent background):

An error ocurred executing the command.

Details:
crop_image: Width is less than 1

Or in debug just pasting a native bitmap (copying the image from other program) on a sprite with a background layer:

image

If you ignore the assert, the image is pasted but without interactivity, and after undoing, Aseprite crashes.

@dacap dacap assigned ckaiser and unassigned dacap Sep 19, 2025
@ckaiser ckaiser closed this Sep 24, 2025
@ckaiser ckaiser deleted the bitmapless-selection-v2-final-final branch September 24, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding Empty Selection to app.clipboard causes Aseprite Crash on Paste

3 participants