Fix manipulator removal

The flag could be left set, removing the manipulator type again.
This commit is contained in:
Campbell Barton
2018-05-18 17:29:43 +02:00
parent 6a782ed767
commit c2d5411cbf

View File

@@ -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);
}
}