From 11d13efcee645f30c5a9125ebce359253b4b21d7 Mon Sep 17 00:00:00 2001 From: Sebastian Sille <nrgsille@noreply.localhost> Date: Tue, 21 Feb 2023 02:01:05 +0100 Subject: [PATCH] Avoiding double textures No more double textures will be imported Signed-off-by: Sebastian Sille <nrgsille@noreply.localhost> --- io_scene_3ds/import_3ds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py index 50944652..245ffe5c 100644 --- a/io_scene_3ds/import_3ds.py +++ b/io_scene_3ds/import_3ds.py @@ -483,7 +483,7 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, IMAGE_SE elif temp_chunk.ID == MAT_MAP_FILEPATH: texture_name, read_str_len = read_string(file) - img = TEXTURE_DICT[contextMaterial.name] = load_image(texture_name, dirname, recursive=IMAGE_SEARCH) + img = load_image(texture_name, dirname, place_holder=False, recursive=IMAGE_SEARCH, check_existing=True) temp_chunk.bytes_read += read_str_len # plus one for the null character that gets removed elif temp_chunk.ID == MAT_MAP_USCALE: -- GitLab