diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-04-09 17:55:44 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-04-09 17:57:19 +0200 |
commit | 156faf535c07df2c3c71e1be99b79883dfe9bee4 (patch) | |
tree | e1397abb718f8d6db653d0a4a7bd82c22dbf98a3 /editor/plugins/spatial_editor_plugin.h | |
parent | 5772f60f960ee8c396574f0c6f94def18bb210c7 (diff) | |
download | redot-engine-156faf535c07df2c3c71e1be99b79883dfe9bee4.tar.gz |
Make 3D snapping finer when holding Shift
This also changes the default rotation and scale snapping increments
to better make use of fine snapping possibilities.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.h')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index 4a9d34a7f7..4f6eb82830 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -673,9 +673,9 @@ public: ToolMode get_tool_mode() const { return tool_mode; } bool are_local_coords_enabled() const { return tool_option_button[SpatialEditor::TOOL_OPT_LOCAL_COORDS]->is_pressed(); } bool is_snap_enabled() const { return snap_enabled ^ snap_key_enabled; } - float get_translate_snap() const { return snap_translate->get_text().to_double(); } - float get_rotate_snap() const { return snap_rotate->get_text().to_double(); } - float get_scale_snap() const { return snap_scale->get_text().to_double(); } + float get_translate_snap() const; + float get_rotate_snap() const; + float get_scale_snap() const; Ref<ArrayMesh> get_move_gizmo(int idx) const { return move_gizmo[idx]; } Ref<ArrayMesh> get_move_plane_gizmo(int idx) const { return move_plane_gizmo[idx]; } |