Skip to content

Commit

Permalink
Fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Nov 2, 2018
1 parent 180eba9 commit ba7c9c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io_scene_cod/export_xmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_armature_filter(object):
obs.append(ob)

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

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

Expand Down

0 comments on commit ba7c9c1

Please sign in to comment.