diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-05 17:00:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-05 17:06:53 +0300 |
commit | 0a1a7323e579fe730b64322cf49ba28d85873241 (patch) | |
tree | 8d0130aaaeb856193d321246f0adf7c06c8c5ea5 /source/blender/windowmanager | |
parent | 572b1a644f29eff9b37b45543bfc27a2d68022c7 (diff) |
Manipulator: missing exit() call
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c index e0c803067d6..0d2a8f7dcc5 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c @@ -658,6 +658,11 @@ void wm_manipulatormaps_handled_modal_update( else { wm_manipulatormap_highlight_set(mmap, C, NULL, 0); if (mpr) { + /* This isn't defined if it ends because of success of cancel, we may want to change. */ + bool cancel = true; + if (mpr->type->exit) { + mpr->type->exit(C, mpr, cancel); + } wm_manipulatormap_modal_set(mmap, C, mpr, NULL, false); } } |