ucupumar / ucupaint

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

Feature request: Copy/duplicate without packing #125

Open squiddingme opened 3 weeks ago

squiddingme commented 3 weeks ago

Seems like when a layer is duplicated or copied and pasted it always makes copies of all of the textures and packs those copies into the file. I'm not sure if there's a technical reason why this is the case but it causes projects to quickly balloon in file size.

I think the current copy/duplicate layer functions should make texture copies that aren't packed (they point to the same source as the original), and an extra set of functions "Duplicate Layer and Pack Textures" and "Paste Layer(s) and Pack Textures" could exist.

Either that or a toggle box in Ucupaint settings could switch between packing and unpacking behavior.

ucupumar commented 3 weeks ago

This behavior is because the duplicated image still points to the same image on disk by default, so I decided to erase the duplicated image filepath to trigger the packing of the image. I know this is a quick hack because I thought it's probably not that many people will do this. I think the correct behavior is to actually duplicate the file on disk.