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:
authorCampbell Barton <ideasman42@gmail.com>2012-09-06 03:01:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-06 03:01:55 +0400
commit0121d1744cace2c36f56fba417d8cb7098768ae3 (patch)
treedb9ba291c87c86f409dce3d55229386e04b3e41b /io_anim_c3d/__init__.py
parent42426f816bafae5d863f16dcb05135dfa773e387 (diff)
code cleanup: ensure modal_handler_add() is called directly before returning.
Diffstat (limited to 'io_anim_c3d/__init__.py')
-rw-r--r--io_anim_c3d/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index ffd3658c..8741c252 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -87,9 +87,9 @@ class C3DAnimateCloud(bpy.types.Operator):
return {'PASS_THROUGH'}
def execute(self, context):
- context.window_manager.modal_handler_add(self)
self.timer = context.window_manager.\
event_timer_add(0.001, context.window)
+ context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'}
def cancel(self, context):