diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-06 03:01:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-06 03:01:55 +0400 |
commit | 0121d1744cace2c36f56fba417d8cb7098768ae3 (patch) | |
tree | db9ba291c87c86f409dce3d55229386e04b3e41b /modules | |
parent | 42426f816bafae5d863f16dcb05135dfa773e387 (diff) |
code cleanup: ensure modal_handler_add() is called directly before returning.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/selection_utils.py | 3 |
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'} |