From 0121d1744cace2c36f56fba417d8cb7098768ae3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Sep 2012 23:01:55 +0000 Subject: code cleanup: ensure modal_handler_add() is called directly before returning. --- modules/selection_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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'} -- cgit v1.2.3