diff options
author | Jesse Yurkovich <jesse.y@gmail.com> | 2022-07-07 12:08:32 +0300 |
---|---|---|
committer | Jesse Yurkovich <jesse.y@gmail.com> | 2022-07-07 12:12:36 +0300 |
commit | f25620187620e75772adc18eaf121ef00416c791 (patch) | |
tree | a07d2ca97996a718dc2c8b71713a58c3e1afb6df /source/blender/editors/space_image | |
parent | 50f9c1c09ce331c7ce09115016ba3e4407691701 (diff) |
Fix T99388: Obey relative path option when saving UDIMs
Ensure that the Image maintains the proper file path after saving all
the individual tiles.
The image_save_post function is unaware that the filepath it receives
is only for a single tile, not the entire Image, and happily keeps
setting ima->filepath to the concrete filepath for each tile.
There were 2 problems with the code that attempted to correct the
Image filepath back to the UDIM virtual form:
- It would trample the "relative" directory that might have been set
- It would do the wrong thing if no tiles could be saved at all
The design is now as follows: Example of trying to save to a new PathB
| | all tiles ok | any tile not ok|
| -------------------------------- | ---------------- | ---------------|
| ima->filepath is currently empty | set to new PathB | keep empty |
| ima->filepath is currently PathA | set to new PathB | keep PathA |
Differential Revision: https://developer.blender.org/D15384
Diffstat (limited to 'source/blender/editors/space_image')
0 files changed, 0 insertions, 0 deletions