Fix T96156: Snap to 3D cursor can't be undone
Caused by oversight in 2bcf93bbbe
. Operator returns `OPERATOR_CANCELLED`
when it should return `OPERATOR_FINISHED`.
Reviewed By: mano-wii, campbellbarton
Differential Revision: https://developer.blender.org/D14243
This commit is contained in:
parent
45079b169d
commit
4681987d92
Notes:
blender-bot
2023-02-14 09:33:11 +01:00
Referenced by issue #96156, Selection to 3D cursor operation cannot be redone
|
@ -616,9 +616,9 @@ static int snap_selected_to_cursor_exec(bContext *C, wmOperator *op)
|
|||
const int pivot_point = scene->toolsettings->transform_pivot_point;
|
||||
|
||||
if (snap_selected_to_location(C, snap_target_global, use_offset, pivot_point, true)) {
|
||||
return OPERATOR_CANCELLED;
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
return OPERATOR_FINISHED;
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot)
|
||||
|
|
Loading…
Reference in New Issue