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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user