From a9cd90135afe6e2615ac20ea81c16cb4e0a95534 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 25 Mar 2021 15:26:37 +0100 Subject: 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 --- source/blender/editors/transform/transform_convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/transform/transform_convert.c') 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: -- cgit v1.2.3