diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-01 23:37:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 23:37:37 +0100 |
commit | 96aff740fe4596384d7e467f9ad7eefaf5827847 (patch) | |
tree | a4c8a1b0fdb00a63a92a8be202f9cf69d56335de /editor/editor_properties.cpp | |
parent | 2900b40507473d4d87e9373aab7f7dd61af0f6a2 (diff) | |
parent | f87d42f4caf1589668fb2add6e89dd5b564ba001 (diff) |
Merge pull request #44809 from Calinou/physics-render-layers-zero-index
Use zero-indexing for physics and render layer names
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r-- | editor/editor_properties.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 306a1aed72..690808ddac 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -725,12 +725,12 @@ void EditorPropertyLayers::setup(LayerType p_layer_type) { for (int i = 0; i < 20; i++) { String name; - if (ProjectSettings::get_singleton()->has_setting(basename + "/layer_" + itos(i + 1))) { - name = ProjectSettings::get_singleton()->get(basename + "/layer_" + itos(i + 1)); + if (ProjectSettings::get_singleton()->has_setting(basename + vformat("/layer_%d", i))) { + name = ProjectSettings::get_singleton()->get(basename + vformat("/layer_%d", i)); } if (name == "") { - name = TTR("Layer") + " " + itos(i + 1); + name = vformat(TTR("Layer %d"), i); } names.push_back(name); |