Fix #115393: Set Snap Base not working
Caused by 07b5e1bd80
Error in the early return logic.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user