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:
authorStefan Werner <stefan.werner@tangent-animation.com>2018-10-12 13:12:10 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2018-10-12 13:12:10 +0300
commita8e894951a0b54d7cffd90b347ca64cb0789fe43 (patch)
tree553fa0fe2a2a1545672fde49ac17e05e4c2880ea /source/blender/editors/space_script/space_script.c
parent7a89fa4a8550a7b3020bd762ab8b69ec836e2f6b (diff)
parentb618c185cb7c5930980e459c84b8818a0fba1f1d (diff)
Merge branch 'master' of git.blender.org:blender into cycles_embree
Diffstat (limited to 'source/blender/editors/space_script/space_script.c')
-rw-r--r--source/blender/editors/space_script/space_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_script/space_script.c b/source/blender/editors/space_script/space_script.c
index 6f72c1d0159..2adfcc521f5 100644
--- a/source/blender/editors/space_script/space_script.c
+++ b/source/blender/editors/space_script/space_script.c
@@ -132,7 +132,7 @@ static void script_main_region_init(wmWindowManager *wm, ARegion *ar)
UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_STANDARD, ar->winx, ar->winy);
/* own keymap */
- keymap = WM_keymap_find(wm->defaultconf, "Script", SPACE_SCRIPT, 0);
+ keymap = WM_keymap_ensure(wm->defaultconf, "Script", SPACE_SCRIPT, 0);
WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct);
}