ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
1.28k stars 37 forks source link

Merging layers is destructive if the images aren't saved #193

Open passivestar opened 2 hours ago

passivestar commented 2 hours ago

Trying to merge and then undo with Ctrl+Z results in a loss of data. Merge should probably check if we're trying to merge layers that have unsaved images and show a warning

https://github.com/user-attachments/assets/373c8ee7-8278-45e5-826f-399180d4898d

ucupumar commented 2 hours ago

Merging layers changes pixel values without painting, which most of the time is always destructive in blender afaik. I'm not sure if it is possible to fix

passivestar commented 1 hour ago

Undo works if the images are saved though (if the blend file is saved). So it could just check if the images are saved and show a warning that it can't be undone if they aren't