[Feaature] Bake selected objects only
Added an ability to bake using the selected objects only.
Thanks for the PR! This seems a very simple solution for your problem, but it looks like the user needs to reselect the objects every time they want to do the rebake.
All other ucupaint operations remember what you select previously, like for example in baking other objects normal, after you've done the baking once, you don't need to select the source objects again to rebake. I think this behavior should also be integrated into your PR in some way. Let me know what you think.
Hi.
You might be right, but I don't know for sure, since I only use ucupaint one way and don't have enough experience to assess the necessity of preserving object selection.
In my workflow, I bake quite rarely, and with my changes, I only need to select one object, so in my particular case, the lack of preserving selection isn't a big deal. But perhaps for someone with a different workflow, it will be useful or even critical.
Yeah, we should consider every scenario when a new feature is being implemented. All the bake information is currently stored in BakeInfo instance in the baked image, maybe you can check that. If you need more guidance on how ucupaint works, we can also discuss more details in the discord server (https://discord.gg/BdNfGGzQHh)