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.
This commit is contained in:
parent
efe119cd39
commit
389fc62f6c
Notes:
blender-bot
2024-03-25 12:30:38 +01:00
Referenced by issue #72094, Multiple snap targets don't work when Increment is enabled in snapping options
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue