app.command.MoveMask error when wrapping with a value higher than sprite width

For context, I’m using Aseprite v1.3-beta5-x64 from Steam in Windows 10.

Hello! I’m working on an Aseprite script that uses app.command.MoveMask for shifting pixels in a selection and having them wrap around the selection boundary.

However, I found that, if the amount of pixels to shift for (labeled internally as quantity) is higher than the image width, rather than wrap the pixels around, it will instead just “paste” the new image while leaving the rest of the pixels “untouched” (that is, not repeated, not wrapped, but instead completely unaltered). Undoing the action will also break the original image by only restoring the original image partially, and leaving a section completely untouched.

Included below is an image that hopefully explains the bug and its results:

Thanks!

1 Like

It’s beyond frustrating that a legitimate bug has gone entirely ignored for a month and a half. I understand most “regular users” wouldn’t ever encounter it, but it sucks to be spending my own time as a script developer, trying to expand the features of Aseprite for the rest of the userbase, and then go entirely ignored when reporting a problem with the software that directly affects my contributions to the community, especially when I know as a programmer that such a fix would be quite trivial (I’m absolutely sure this could be fixed in the application with a simple modulo operation). Just disappointing.

1 Like