Fix #115393: Set Snap Base not working

Caused by 07b5e1bd80

Error in the early return logic.
This commit is contained in:
Germano Cavalcante
2023-11-25 09:48:54 -03:00
parent 361174b588
commit cea7b0bde8

View File

@@ -165,7 +165,7 @@ void transform_mode_snap_source_init(TransInfo *t, wmOperator * /*op*/)
return;
}
if (t->tsnap.snap_target_fn) {
if (!t->tsnap.snap_target_fn) {
/* A `snap_target_fn` is required for the operation to work.
* `snap_target_fn` can be `nullptr` when transforming camera in camera view. */
return;