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
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-03-25 17:26:37 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-03-25 17:36:53 +0300
commita9cd90135afe6e2615ac20ea81c16cb4e0a95534 (patch)
treec57612dc04f75d5bfed15ce55af65dae452cfe45 /source/blender/editors/transform/transform_convert.c
parent5ffbe439c60975bd09873a0cb12c6ec7bf50fdbb (diff)
Make moving the cursor in UV Editor a 2d edit transform
This flags moving the cursor in the Image Editor T_2D_EDIT with the following benefits: - dissallowing e.g. Z constraints - improving the header display: -- it should not use scene units -- now respects if we are moving in pixel coords or not part of upcoming fix for T86796 ref D10817
Diffstat (limited to 'source/blender/editors/transform/transform_convert.c')
-rw-r--r--source/blender/editors/transform/transform_convert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c
index 2cc3025c3a5..dd577db01a3 100644
--- a/source/blender/editors/transform/transform_convert.c
+++ b/source/blender/editors/transform/transform_convert.c
@@ -1187,10 +1187,11 @@ static eTFlag flags_from_data_type(eTConvertType data_type)
return T_EDIT;
case TC_MESH_UV:
return T_EDIT | T_POINTS | T_2D_EDIT;
+ case TC_CURSOR_IMAGE:
+ return T_2D_EDIT;
case TC_PARTICLE_VERTS:
return T_POINTS;
case TC_POSE:
- case TC_CURSOR_IMAGE:
case TC_CURSOR_VIEW3D:
case TC_OBJECT:
case TC_OBJECT_TEXSPACE: