[Bf-blender-cvs] [d3e14c2e2fc] blender2.8: Manipulator: disable UV widget, following prefs
Campbell Barton
noreply at git.blender.org
Fri Mar 9 10:43:35 CET 2018
Commit: d3e14c2e2fc5506270f4dd3cc41ae6bc523db296
Author: Campbell Barton
Date: Fri Mar 9 20:44:41 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBd3e14c2e2fc5506270f4dd3cc41ae6bc523db296
Manipulator: disable UV widget, following prefs
===================================================================
M source/blender/editors/transform/transform_manipulator2d.c
===================================================================
diff --git a/source/blender/editors/transform/transform_manipulator2d.c b/source/blender/editors/transform/transform_manipulator2d.c
index 9b6dd187c15..a9414a7f4bf 100644
--- a/source/blender/editors/transform/transform_manipulator2d.c
+++ b/source/blender/editors/transform/transform_manipulator2d.c
@@ -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);
More information about the Bf-blender-cvs
mailing list