summaryrefslogtreecommitdiff
path: root/collada_superbmd_export.py
diff options
context:
space:
mode:
Diffstat (limited to 'collada_superbmd_export.py')
-rw-r--r--collada_superbmd_export.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/collada_superbmd_export.py b/collada_superbmd_export.py
index 2f92fa3..e574dc4 100644
--- a/collada_superbmd_export.py
+++ b/collada_superbmd_export.py
@@ -30,7 +30,9 @@ def write_bmd_bdl_collada(context, filepath, triangulate):
blender_funcs.select_obj(armature, False, "OBJECT")
# check if the armature contains only mesh objects inside
+ # unhide all objects
for child in armature.children:
+ child.hide = False
if (child.type != "MESH"):
blender_funcs.disp_msg("\"%s\": contains non-mesh object (%s)." % (armature.name, child.name))
return {"FINISHED"}
@@ -164,7 +166,7 @@ def write_bmd_bdl_collada(context, filepath, triangulate):
bpy.ops.wm.collada_export(filepath = filepath, use_blender_profile = False,
selected = True, include_children = True,
triangulate = triangulate)
-
+
# delete the duplicate object
blender_funcs.select_obj(armature, True, "OBJECT")
bpy.ops.object.delete(use_global = False)