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 /modules
parent42426f816bafae5d863f16dcb05135dfa773e387 (diff)
code cleanup: ensure modal_handler_add() is called directly before returning.
Diffstat (limited to 'modules')
-rw-r--r--modules/selection_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/selection_utils.py b/modules/selection_utils.py
index aff9eea8..3bf89816 100644
--- a/modules/selection_utils.py
+++ b/modules/selection_utils.py
@@ -72,8 +72,9 @@ class SelectionOrder(bpy.types.Operator):
return {'PASS_THROUGH'}
def invoke(self, context, event):
- context.window_manager.modal_handler_add(self)
self.update(context)
+
+ context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'}