[Bf-blender-cvs] [84896bbfbb3] transform-snap-base: Limit this feature to Move, Rotate and Resize modes
Germano Cavalcante
noreply at git.blender.org
Mon Nov 23 19:04:24 CET 2020
Commit: 84896bbfbb3f7a41246502251f63439058c8b41b
Author: Germano Cavalcante
Date: Mon Nov 23 14:55:27 2020 -0300
Branches: transform-snap-base
https://developer.blender.org/rB84896bbfbb3f7a41246502251f63439058c8b41b
Limit this feature to Move, Rotate and Resize modes
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 67771493316..7a1294989a6 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -654,6 +654,13 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
if (t->spacetype != SPACE_VIEW3D) {
return false;
}
+ if (!ELEM(t->mode,
+ TFM_TRANSLATION,
+ TFM_ROTATION,
+ TFM_RESIZE)) {
+ /* More modes can be added over time if this feature proves useful in them. */
+ return false;
+ }
break;
}
}
More information about the Bf-blender-cvs
mailing list