summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-11-23 08:54:05 +0100
committerGitHub <noreply@github.com>2020-11-23 08:54:05 +0100
commit663d0d79fa5303f899285896f78d4984742b0bf6 (patch)
tree6a96bc408a2d0032b235c725503b9a71c207b55a
parentf218550c48ef3def0fcdd6bb12c14b89a7105119 (diff)
parent31cf3e2572e7c6db9ac8a58d16e289be69967b7c (diff)
Merge pull request #43754 from Calinou/primary-grid-steps-default-pot
Use a power-of-two value for Primary Grid Steps in the 3D editor
-rw-r--r--editor/editor_settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index f5c1de9def..2cf0bed7d0 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -510,7 +510,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
hints["editors/3d/secondary_grid_color"] = PropertyInfo(Variant::COLOR, "editors/3d/secondary_grid_color", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT);
// If a line is a multiple of this, it uses the primary grid color.
- _initial_set("editors/3d/primary_grid_steps", 10);
+ // Use a power of 2 value by default as it's more common to use powers of 2 in level design.
+ _initial_set("editors/3d/primary_grid_steps", 8);
hints["editors/3d/primary_grid_steps"] = PropertyInfo(Variant::INT, "editors/3d/primary_grid_steps", PROPERTY_HINT_RANGE, "1,100,1", PROPERTY_USAGE_DEFAULT);
// At 1000, the grid mostly looks like it has no edge.