Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-05 04:11:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-05 04:11:39 +0400
commit8cf9e5f8c3904b3e46743c92c0275c4c54726866 (patch)
tree8b68b22d5d00df6f60b3c890c3b19b881d78be4d /source/blender/windowmanager/intern
parentebe29c3f8444f1ca8128ecc989f8f4af9bec5dac (diff)
change templates to call modal_handler_add() is called last since any errors between calling this function and returning will crash blender. see [#30687]
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 60c61dbe88c..dee9d036891 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1444,14 +1444,15 @@ static int wm_handler_operator_call(bContext *C, ListBase *handlers, wmEventHand
}
else {
- printf("%s: error - missing modal\n", __func__);
+ printf("%s: error '%s' missing modal\n", __func__, op->idname);
}
}
else {
wmOperatorType *ot = WM_operatortype_find(event->keymap_idname, 0);
- if (ot)
+ if (ot) {
retval = wm_operator_invoke(C, ot, event, properties, NULL, FALSE);
+ }
}
/* Finished and pass through flag as handled */