Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-03-09 12:44:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-09 12:44:41 +0300
commitd3e14c2e2fc5506270f4dd3cc41ae6bc523db296 (patch)
tree3cb741f9465b39a0d76487dedaa6799ce99395a2 /source
parentf47a41a3d9f9850f852abb3d76bea2c8b281bb45 (diff)
Manipulator: disable UV widget, following prefs
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform_manipulator2d.c4
1 files changed, 4 insertions, 0 deletions
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);