[Bf-extensions-cvs] [0b2806d] : Acclaim Motion Capture Files importer: fixed missing return values

Sybren A. Stüvel noreply at git.blender.org
Tue Mar 24 16:29:00 CET 2015


Commit: 0b2806d722ab1e5e1a3daee924afdcc66c4d2372
Author: Sybren A. Stüvel
Date:   Fri Mar 20 10:23:03 2015 +0100
Branches: 
https://developer.blender.org/rBA0b2806d722ab1e5e1a3daee924afdcc66c4d2372

Acclaim Motion Capture Files importer: fixed missing return values

===================================================================

M	io_anim_acclaim/__init__.py

===================================================================

diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py
index 1cf8973..6bc2e72 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):



More information about the Bf-extensions-cvs mailing list