diff options
author | SekoiaTree <sequoia.1009@gmail.com> | 2023-01-11 13:02:08 +0100 |
---|---|---|
committer | SekoiaTree <sequoia.1009@gmail.com> | 2023-01-11 13:02:08 +0100 |
commit | 05aaae747b6123eec7c74baf7c9ed0fa85800ff3 (patch) | |
tree | 1465cd0cd4171c4b0fffb5a7ece91c209de53dcd /scene | |
parent | 9c02bf1b116810b2a95009a8f5b9fcc379e7fa78 (diff) |
Remove compatibility code for Mesh surfaces
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/mesh.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp index 5e18b5df37..8778d8b94d 100644 --- a/scene/resources/mesh.cpp +++ b/scene/resources/mesh.cpp @@ -1120,17 +1120,6 @@ bool ArrayMesh::_set(const StringName &p_name, const Variant &p_value) { } int idx = sname.substr(8, sl - 8).to_int(); - // This is a bit of a hack to ensure compatibility with older material - // overrides that start indexing at 1. - // We assume that idx 0 is always read first, if its not, this won't work. - if (idx == 0) { - surface_index_0 = true; - } - if (!surface_index_0) { - // This means the file was created when the indexing started at 1, so decrease by one. - idx--; - } - String what = sname.get_slicec('/', 1); if (what == "material") { surface_set_material(idx, p_value); |