diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-30 13:13:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-30 13:14:10 +0300 |
commit | 98fe9da37d0aca024d953c487d18531bdde7905a (patch) | |
tree | 2e7ac36f3265f078b7b2ee07743fbcb4be350b36 /source/blender/editors/transform/transform_manipulator.c | |
parent | 5ea85d0b049d4e7adb8749cb7d02ca6ea2b1d11b (diff) |
Add NULL check for transform manipulator
Removes need for empty keymap
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index eea306c7ff0..a56d057cb3b 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -1287,7 +1287,7 @@ static void WIDGETGROUP_manipulator_setup(const bContext *C, wmManipulatorGroup ScrArea *sa = CTX_wm_area(C); wmKeyMap *km = WM_keymap_find_all(C, workspace->tool.keymap, sa->spacetype, RGN_TYPE_WINDOW); /* Weak, check first event */ - wmKeyMapItem *kmi = km->items.first; + wmKeyMapItem *kmi = km ? km->items.first : NULL; if (kmi == NULL) { man->twtype |= V3D_MANIP_TRANSLATE | V3D_MANIP_ROTATE | V3D_MANIP_SCALE; |