|
@@ -1470,7 +1470,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|
|
|
|
|
Vector3 ray_pos = _get_ray_pos(m->get_position());
|
|
Vector3 ray_pos = _get_ray_pos(m->get_position());
|
|
Vector3 ray = _get_ray(m->get_position());
|
|
Vector3 ray = _get_ray(m->get_position());
|
|
- float snap = EDITOR_GET("interface/inspector/default_float_step");
|
|
|
|
|
|
+ double snap = EDITOR_GET("interface/inspector/default_float_step");
|
|
int snap_step_decimals = Math::range_step_decimals(snap);
|
|
int snap_step_decimals = Math::range_step_decimals(snap);
|
|
|
|
|
|
switch (_edit.mode) {
|
|
switch (_edit.mode) {
|
|
@@ -1771,7 +1771,7 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|
Vector3 y_axis = (click - _edit.center).normalized();
|
|
Vector3 y_axis = (click - _edit.center).normalized();
|
|
Vector3 x_axis = plane.normal.cross(y_axis).normalized();
|
|
Vector3 x_axis = plane.normal.cross(y_axis).normalized();
|
|
|
|
|
|
- float angle = Math::atan2(x_axis.dot(intersection - _edit.center), y_axis.dot(intersection - _edit.center));
|
|
|
|
|
|
+ double angle = Math::atan2(x_axis.dot(intersection - _edit.center), y_axis.dot(intersection - _edit.center));
|
|
|
|
|
|
if (_edit.snap || spatial_editor->is_snap_enabled()) {
|
|
if (_edit.snap || spatial_editor->is_snap_enabled()) {
|
|
snap = spatial_editor->get_rotate_snap();
|
|
snap = spatial_editor->get_rotate_snap();
|