diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-03-25 17:26:37 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-03-25 17:36:53 +0300 |
commit | a9cd90135afe6e2615ac20ea81c16cb4e0a95534 (patch) | |
tree | c57612dc04f75d5bfed15ce55af65dae452cfe45 /source/blender/editors | |
parent | 5ffbe439c60975bd09873a0cb12c6ec7bf50fdbb (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')
-rw-r--r-- | source/blender/editors/transform/transform_convert.c | 3 |
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: |