aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2017-11-26 20:53:45 +0700
committerGitHub2017-11-26 20:53:45 +0700
commit304d31b7d2d0bdd8a2b77cb26451b1d9d18e9b52 (patch)
tree0fb1b666e7e51dae5c2a9e018ee8bd6b07b7f6eb /editor/plugins/spatial_editor_plugin.cpp
parentf2c1fd2e8f3734a7b8df9821af329c20e93ef72e (diff)
parente3fc6fcaa6d31162d7f670663dd350f80b6680c7 (diff)
downloadgodot-304d31b7d2d0bdd8a2b77cb26451b1d9d18e9b52.tar.gz
godot-304d31b7d2d0bdd8a2b77cb26451b1d9d18e9b52.tar.zst
godot-304d31b7d2d0bdd8a2b77cb26451b1d9d18e9b52.zip
Merge pull request #13293 from Calinou/tweak-editor-camera-defaults
Tweak the default editor camera settings
Diffstat (limited to '')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 20dda8b69..9636df970 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -4828,8 +4828,8 @@ void SpatialEditor::_bind_methods() {
void SpatialEditor::clear() {
- settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 55.0));
- settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.1));
+ settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 70.0));
+ settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.05));
settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500.0));
for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) {
@@ -5072,14 +5072,14 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
settings_fov->set_max(MAX_FOV);
settings_fov->set_min(MIN_FOV);
settings_fov->set_step(0.01);
- settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 55.0));
+ settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 70.0));
settings_vbc->add_margin_child(TTR("Perspective FOV (deg.):"), settings_fov);
settings_znear = memnew(SpinBox);
settings_znear->set_max(MAX_Z);
settings_znear->set_min(MIN_Z);
settings_znear->set_step(0.01);
- settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.1));
+ settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.05));
settings_vbc->add_margin_child(TTR("View Z-Near:"), settings_znear);
settings_zfar = memnew(SpinBox);