summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorSnailRhymer <harrymilnes@hotmail.com>2022-07-30 20:01:27 +0100
committerSnailRhymer <harrymilnes@hotmail.com>2022-07-30 20:05:24 +0100
commit0ac971c0d35a2d688ab85e4c818600fae7d4cf28 (patch)
tree5104c45d6b125d68df8c8326f95262ec43872fbc /editor
parentc2d55a4e1a353b75eb598277e9a6403fc6bfc4d5 (diff)
Fix default values for rotation snapping in canvas_item_editor_plugin.cpp
Default values for snap_rotation_step and snap_rotation_offset were transposed. Swap them back.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h
index 5b368de3cc..04fd819dec 100644
--- a/editor/plugins/canvas_item_editor_plugin.h
+++ b/editor/plugins/canvas_item_editor_plugin.h
@@ -214,8 +214,8 @@ private:
int primary_grid_steps = 8;
int grid_step_multiplier = 0;
- real_t snap_rotation_step = 0.0;
- real_t snap_rotation_offset = Math::deg2rad(15.0);
+ real_t snap_rotation_step = Math::deg2rad(15.0);
+ real_t snap_rotation_offset = 0.0;
real_t snap_scale_step = 0.1f;
bool smart_snap_active = false;
bool grid_snap_active = false;