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 /scene | |
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 'scene')
-rw-r--r-- | scene/register_scene_types.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 10d0f74615..b809eea43b 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -936,10 +936,10 @@ void register_scene_types() { OS::get_singleton()->yield(); //may take time to init for (int i = 0; i < 20; i++) { - GLOBAL_DEF("layer_names/2d_render/layer_" + itos(i + 1), ""); - GLOBAL_DEF("layer_names/2d_physics/layer_" + itos(i + 1), ""); - GLOBAL_DEF("layer_names/3d_render/layer_" + itos(i + 1), ""); - GLOBAL_DEF("layer_names/3d_physics/layer_" + itos(i + 1), ""); + GLOBAL_DEF(vformat("layer_names/2d_render/layer_%d", i), ""); + GLOBAL_DEF(vformat("layer_names/2d_physics/layer_%d", i), ""); + GLOBAL_DEF(vformat("layer_names/3d_render/layer_%d", i), ""); + GLOBAL_DEF(vformat("layer_names/3d_physics/layer_%d", i), ""); } bool default_theme_hidpi = GLOBAL_DEF("gui/theme/use_hidpi", false); |