From c2d5411cbfe2da4b4a274a8695cec8a024cad886 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 18 May 2018 17:29:43 +0200 Subject: [PATCH] Fix manipulator removal The flag could be left set, removing the manipulator type again. --- .../windowmanager/manipulators/intern/wm_manipulator_map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c index da55db9db00..ab8c797df69 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_map.c @@ -1151,6 +1151,7 @@ void WM_manipulatorconfig_update(struct Main *bmain) { wgt_ref_next = wgt_ref->next; if (wgt_ref->type->type_update_flag & WM_MANIPULATORMAPTYPE_UPDATE_REMOVE) { + wgt_ref->type->type_update_flag &= ~WM_MANIPULATORMAPTYPE_UPDATE_REMOVE; WM_manipulatormaptype_group_unlink(NULL, bmain, mmap_type, wgt_ref->type); } }