Manipulator: disable UV widget, following prefs

This commit is contained in:
Campbell Barton
2018-03-09 20:44:41 +11:00
parent f47a41a3d9
commit d3e14c2e2f

View File

@@ -353,6 +353,10 @@ void ED_widgetgroup_manipulator2d_draw_prepare(const bContext *C, wmManipulatorG
*/
bool ED_widgetgroup_manipulator2d_poll(const bContext *C, wmManipulatorGroupType *UNUSED(wgt))
{
if ((U.manipulator_flag & USER_MANIPULATOR_DRAW) == 0) {
return false;
}
SpaceImage *sima = CTX_wm_space_image(C);
Object *obedit = CTX_data_edit_object(C);