[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4675] trunk/py/scripts/addons/ io_scene_fbx/import_fbx.py: remove path component from image names
Campbell Barton
ideasman42 at gmail.com
Mon Aug 12 10:51:25 CEST 2013
Revision: 4675
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4675
Author: campbellbarton
Date: 2013-08-12 08:51:24 +0000 (Mon, 12 Aug 2013)
Log Message:
-----------
remove path component from image names
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_fbx/import_fbx.py
Modified: trunk/py/scripts/addons/io_scene_fbx/import_fbx.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/import_fbx.py 2013-08-12 07:51:58 UTC (rev 4674)
+++ trunk/py/scripts/addons/io_scene_fbx/import_fbx.py 2013-08-12 08:51:24 UTC (rev 4675)
@@ -527,7 +527,8 @@
recursive=use_image_search,
)
- image.name = elem_name_utf8
+ # name can be ../a/b/c
+ image.name = os.path.basename(elem_name_utf8)
return image
@@ -954,7 +955,7 @@
if image and image.depth == 32:
if use_alpha_decals:
material_decals.add(material)
-
+
if use_cycles:
ma_wrap = cycles_material_wrap_map[material]
if ma_wrap.node_bsdf_alpha.mute:
More information about the Bf-extensions-cvs
mailing list