[Bf-extensions-cvs] [698644eb] master: import_3ds: fix for image paths: T66329

meta-androcto noreply at git.blender.org
Mon Dec 9 05:13:42 CET 2019


Commit: 698644ebcb3c6c11e017d5d1791bf961f228fe85
Author: meta-androcto
Date:   Mon Dec 9 15:13:28 2019 +1100
Branches: master
https://developer.blender.org/rBAC698644ebcb3c6c11e017d5d1791bf961f228fe85

import_3ds: fix for image paths: T66329

===================================================================

M	io_scene_3ds/import_3ds.py

===================================================================

diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 385a88d7..3128875c 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -413,7 +413,7 @@ def process_next_chunk(context, file, previous_chunk, importedObjects, IMAGE_SEA
             if temp_chunk.ID == MAT_MAP_FILEPATH:
                 texture_name, read_str_len = read_string(file)
 
-                img = TEXTURE_DICT[contextMaterial.name] = load_image(texture_name, dirname)
+                img = TEXTURE_DICT[contextMaterial.name] = load_image(texture_name, dirname, recursive=IMAGE_SEARCH)
                 temp_chunk.bytes_read += read_str_len  # plus one for the null character that gets removed
 
             elif temp_chunk.ID == MAT_MAP_USCALE:



More information about the Bf-extensions-cvs mailing list