diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-21 13:12:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 13:12:10 +0200 |
commit | 78eb25a4a87855e8ea5c04b2b6eb72c2b92dfd7e (patch) | |
tree | 074cc17c5a5a2563838c48e434d85758955f6514 /editor/plugins/spatial_editor_plugin.h | |
parent | 7d0275785b7582e34f488f7d28554f064168a428 (diff) | |
parent | 156faf535c07df2c3c71e1be99b79883dfe9bee4 (diff) |
Merge pull request #27860 from Calinou/improve-3d-snapping
Make 3D snapping finer when holding Shift
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 65dd2a26fd..f3a1e657cc 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -677,9 +677,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]; } |