First attempt at re-calculating all colors in a group hierarchy when one color changes, and also protecting user-defined colors.

This commit is contained in:
Anna Rose Wiggins 2024-07-30 18:57:17 -04:00
parent 0ed105d355
commit 4f0f5dc8ad
3 changed files with 63 additions and 33 deletions

View file

@ -19,8 +19,9 @@ To install, go to Aseprite's Settings -> Extensions -> Add Extension, and select
## Additional Notes
* Toggling the advanced export settings on a layer will modify the layer colors. If you are using layer colors for other purposes, this extension will not work well for you. (This may be configurable in a future update)
* Ignored layers always take precedence over merging; if a sublayer in a group is ignored, it will not be merged into the final sprite.
* Toggling the advanced export settings on a layer will modify the layer colors. The extension will attempt to detect and preserve user-colored layers. If you happen to use one of the exact colors we have chosen, this will fail. We have chosen odd alpha values to reduce the likelihood of a false negative, but if you are using layer colors extensively, this extension may not work well for you.
* To force a layer's color to be controlled by the extension, simply reset the layer's color to all 0 values. (red, green, blue, and alpha should all be 0) You may need to toggle the export settings of a parent layer or create a new layer before the changes take effect.
## Copyright Notice