diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-03-20 12:23:03 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-03-20 12:23:03 +0300 |
commit | a7dce923c15e4fcd9673546a1c95b52c6e15425e (patch) | |
tree | fb2f534398f3a5cda8d2835b7370fc4718f7e313 | |
parent | 2f35b08beb278075db6cb828bb825eb8cf1cc106 (diff) |
Acclaim Motion Capture Files importer: fixed missing return values
-rw-r--r-- | io_anim_acclaim/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py index 1cf89738..6bc2e722 100644 --- a/io_anim_acclaim/__init__.py +++ b/io_anim_acclaim/__init__.py @@ -382,10 +382,12 @@ class AmcAnimator(bpy.types.Operator): def modal(self, context, event): if event.type == 'ESC': - return self.cancel(context) + self.cancel(context) + return {'CANCELLED'} if event.type == 'TIMER': if not self.sb.apply_next_frame(): - return self.cancel(context) + self.cancel(context) + return {'FINISHED'} return {'PASS_THROUGH'} def execute(self, context): |