EdyJ / blender-to-unity-fbx-exporter

FBX exporter addon for Blender compatible with Unity's coordinate and scaling system.
MIT License
947 stars 98 forks source link

Painted texture gets reset #23

Closed ratkingsminion closed 11 months ago

ratkingsminion commented 2 years ago

I often forget to press Alt+S to save the current texture I'm painting. So it's very disheartening when the exporter just resets the texture to its currently saved state right after exporting.

EdyJ commented 2 years ago

Sorry, I'm not used to that feature. Can you please describe how to reproduce the issue step by step for someone that has never used that feature?

ratkingsminion commented 2 years ago

Some simple steps, based on the standard Blender cube scene. 1) Create an image by choosing the "UV Editing" layout and clicking on "+ New". Save the image via Alt+S in any directory. 2) Choose the "Texture Paint" layout, on the right set Mode to "Single Image" instead of "Material". For the image, choose the one you created. Paint a bit on it, save it via Alt+S. 3) Paint a bit more on it, but don't save. 4) Export the cube via Unity FBX exporter. The texture now is back to the state from step 2, all the changes from step 3 are gone without warning.

EdyJ commented 11 months ago

Followed the steps but couldn't repro in Blender 3.4.1. In the step 4 the texture remains in the state from step 3, which the mark "*" (unsaved) in the image editor.

The Unity FBX Exporter uses the "Undo" feature to modify the scene, export it, and then revert back to the previous state. Maybe there was some bug in the Undo feature related with texture painting that has been fixed in recent Blender versions.

Feel free to try Blender 3.4.1+ and reopen the issue if the problem persists.