Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2022-03-07 09:46:24 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-03-07 09:46:24 +0300
commit4681987d92c7de644fd3abddb726fa2300b59486 (patch)
tree62ee193c1d292cd7e605439a3de9375a6bc80977
parent45079b169dc560dc3ff1ecaa8b040a5f7b5709ab (diff)
Fix T96156: Snap to 3D cursor can't be undone
Caused by oversight in 2bcf93bbbeb. Operator returns `OPERATOR_CANCELLED` when it should return `OPERATOR_FINISHED`. Reviewed By: mano-wii, campbellbarton Differential Revision: https://developer.blender.org/D14243
-rw-r--r--source/blender/editors/space_view3d/view3d_snap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c
index 4334ede0a06..29e5917c7ed 100644
--- a/source/blender/editors/space_view3d/view3d_snap.c
+++ b/source/blender/editors/space_view3d/view3d_snap.c
@@ -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)