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>2008-12-26 16:50:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-26 16:50:32 +0300
commit63f84cf26d574284a30f2d28c57a6c32823f4425 (patch)
treef71f8b3033b73d057d15bbf851794e866bd6cbc2 /source/blender/windowmanager
parentbf956bb475c1f064020d3a951bb2ce051f5f7eea (diff)
crash when running operators with no window
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index c10b2b2e28c..ff9e135b83c 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -345,12 +345,13 @@ int WM_operator_name_call(bContext *C, const char *opstring, int context, IDProp
{
wmOperatorType *ot= WM_operatortype_find(opstring);
wmWindow *window= CTX_wm_window(C);
- wmEvent *event= window->eventstate;
+ wmEvent *event;
int retval;
/* dummie test */
if(ot && C && window) {
+ event= window->eventstate;
switch(context) {
case WM_OP_EXEC_REGION_WIN: