diff options
author | Aras Pranckevicius <aras@nesnausk.org> | 2022-07-31 18:10:48 +0300 |
---|---|---|
committer | Aras Pranckevicius <aras@nesnausk.org> | 2022-07-31 18:10:48 +0300 |
commit | bea52819190e54da2907e6c367b493db29f6f5c9 (patch) | |
tree | e0e0d57ab7ca341d61dc735b5482dc50d8982118 /source/blender/editors/io | |
parent | 27e6962beda6df155599cbbd1682c20f4e1cd06d (diff) |
Fix T100075: OBJ import: images loaded multiple times instead of being reused
The new OBJ/MTL importer was creating a new image for any referenced
texture, even if another material (or another property of the same
material) already referenced the same texture. Make it use
BKE_image_load_exists function just like Collada or USD importers do.
Fixes T100075. Extended test coverage to count imported images;
without the fix import_cubes_with_textures_rel would have incorrectly
created 5 images instead of 4.
Diffstat (limited to 'source/blender/editors/io')
0 files changed, 0 insertions, 0 deletions