[Bf-blender-cvs] [d07009498ac] master: Transform: Don't use Automatic Constraint Plane in 2D editors

Germano Cavalcante noreply at git.blender.org
Fri Dec 4 16:31:40 CET 2020


Commit: d07009498ac36d067fbccd61cfbcd51d4e2ba310
Author: Germano Cavalcante
Date:   Fri Dec 4 12:30:52 2020 -0300
Branches: master
https://developer.blender.org/rBd07009498ac36d067fbccd61cfbcd51d4e2ba310

Transform: Don't use Automatic Constraint Plane in 2D editors

Technically it shouldn't have any effect on these editors.

The key tips in the header can be misleading.

The effect it previously had was not intended.

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

M	source/blender/editors/transform/transform.c

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 2004e3b052d..5969de5b5da 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -599,7 +599,8 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
     case TFM_MODAL_AXIS_Z:
     case TFM_MODAL_PLANE_X:
     case TFM_MODAL_PLANE_Y:
-    case TFM_MODAL_PLANE_Z: {
+    case TFM_MODAL_PLANE_Z:
+    case TFM_MODAL_AUTOCONSTRAINTPLANE: {
       if (t->flag & T_NO_CONSTRAINT) {
         return false;
       }



More information about the Bf-blender-cvs mailing list