Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2020-01-13 19:47:05 +0300
committermano-wii <germano.costa@ig.com.br>2020-01-13 19:47:05 +0300
commit389fc62f6c4e039902c94c3da36fd24a351c8a8d (patch)
treea92364d1c1582cb6476ea18620b86200ae5b9ff8 /source/blender/editors/transform/transform.c
parentefe119cd39b3239fd5b0fb2c6469e7554160e5de (diff)
Fix T72094: Multiple snap targets don't work when Increment is enabled
The `poll_modal_item` was too restrictive. `!validSnap(t)` already solves these cases, but for better readability (and efficiency), I found it best to keep the `tsnap.mode` test.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 9a98a2b8a00..62a61a3a05a 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -856,7 +856,7 @@ static bool transform_modal_item_poll(const wmOperator *op, int value)
if (t->spacetype != SPACE_VIEW3D) {
return false;
}
- else if (t->tsnap.mode & (SCE_SNAP_MODE_INCREMENT | SCE_SNAP_MODE_GRID)) {
+ else if ((t->tsnap.mode & ~(SCE_SNAP_MODE_INCREMENT | SCE_SNAP_MODE_GRID)) == 0) {
return false;
}
else if (!validSnap(t)) {