Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-03-20 12:23:03 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-03-20 12:23:03 +0300
commita7dce923c15e4fcd9673546a1c95b52c6e15425e (patch)
treefb2f534398f3a5cda8d2835b7370fc4718f7e313
parent2f35b08beb278075db6cb828bb825eb8cf1cc106 (diff)
Acclaim Motion Capture Files importer: fixed missing return values
-rw-r--r--io_anim_acclaim/__init__.py6
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):