Skip to content

Commit ba7c9c1

Browse files
committed
Fix #16
1 parent 180eba9 commit ba7c9c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

io_scene_cod/export_xmodel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_armature_filter(object):
129129
obs.append(ob)
130130

131131
# Fallback to exporting only the selected object if we couldn't find any
132-
if armature is not None:
132+
if armature is None:
133133
if len(obs) == 0 and context.active_object is not None:
134134
if ob.type == 'MESH':
135135
obs = [context.active_object]
@@ -353,6 +353,8 @@ def save(self, context, filepath,
353353
use_armature,
354354
quiet=False)
355355

356+
# If we were unable to detect any valid rigged objects
357+
# we'll use the selected mesh.
356358
if len(objects) == 0:
357359
return "There are no objects to export"
358360

0 commit comments

Comments
 (0)