Skip to content
Snippets Groups Projects
Commit 11d13efc authored by Sebastian Sille's avatar Sebastian Sille
Browse files

Avoiding double textures


No more double textures will be imported

Signed-off-by: default avatarSebastian Sille <nrgsille@noreply.localhost>
parent e6a1b8d1
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment