[Bf-blender-cvs] [a9cd90135af] master: Make moving the cursor in UV Editor a 2d edit transform

Philipp Oeser noreply at git.blender.org
Thu Mar 25 15:38:15 CET 2021


Commit: a9cd90135afe6e2615ac20ea81c16cb4e0a95534
Author: Philipp Oeser
Date:   Thu Mar 25 15:26:37 2021 +0100
Branches: master
https://developer.blender.org/rBa9cd90135afe6e2615ac20ea81c16cb4e0a95534

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

===================================================================

M	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:



More information about the Bf-blender-cvs mailing list