Fix manipulator remove tag, it cleared all groups

This commit is contained in:
Campbell Barton 2017-08-25 15:19:30 +10:00
parent 3f4b3fdfba
commit 9e762693db
1 changed files with 3 additions and 1 deletions

View File

@ -1046,7 +1046,9 @@ void WM_manipulatorconfig_update(struct Main *bmain)
wgt_ref = wgt_ref_next)
{
wgt_ref_next = wgt_ref->next;
WM_manipulatormaptype_group_unlink(NULL, bmain, mmap_type, wgt_ref->type);
if (wgt_ref->type->type_update_flag & WM_MANIPULATORMAPTYPE_UPDATE_REMOVE) {
WM_manipulatormaptype_group_unlink(NULL, bmain, mmap_type, wgt_ref->type);
}
}
}
}