[Bf-extensions-cvs] [36d3f4c] temp-x3d_import-T44758: Fix for importing Shape nodes with <Appearance DEF="xxx"> but no geometry, where subsequent nodes reference the Appearance by DEF
Seva Alekseyev
noreply at git.blender.org
Thu Sep 24 22:45:58 CEST 2015
Commit: 36d3f4c82c4f38519c339787ce95fa603ffc2ec8
Author: Seva Alekseyev
Date: Thu Sep 24 16:42:47 2015 -0400
Branches: temp-x3d_import-T44758
https://developer.blender.org/rBA36d3f4c82c4f38519c339787ce95fa603ffc2ec8
Fix for importing Shape nodes with <Appearance DEF="xxx"> but no geometry, where subsequent nodes reference the Appearance by DEF
===================================================================
M io_scene_x3d/import_x3d.py
===================================================================
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 217036b..ad7e411 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -2877,7 +2877,7 @@ def importShape_LoadAppearance(vrmlname, appr, ancestry, node, is_vcol):
in material_cache.
"""
# First, check entire-appearance cache
- if appr.reference:
+ if appr.reference and appr.getRealNode().parsed:
return appearance_ExpandCachedMaterial(appr.getRealNode().parsed)
tex_node = appr.getChildBySpec(('ImageTexture', 'PixelTexture'))
More information about the Bf-extensions-cvs
mailing list