From a7dce923c15e4fcd9673546a1c95b52c6e15425e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= <sybren@stuvel.eu> Date: Fri, 20 Mar 2015 10:23:03 +0100 Subject: [PATCH] Acclaim Motion Capture Files importer: fixed missing return values --- io_anim_acclaim/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py index 1cf89738f..6bc2e7226 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): -- GitLab