diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2022-12-22 11:06:48 +0100 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2022-12-22 11:06:48 +0100 |
commit | e96aabfeddcb809702cdc449e37a7faaef7cd477 (patch) | |
tree | 8eab8478c6df251e672fc384d0eed061d8b158d0 | |
parent | c2d8269a72cdd0fe153e0f27e45e2fcc2c218785 (diff) |
Remove deprecated NavigationMesh compatibility parts
Removes _set / _get compatibility function parts for deprecated NavigationMesh slash delimiter properties.
-rw-r--r-- | scene/resources/navigation_mesh.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/scene/resources/navigation_mesh.cpp b/scene/resources/navigation_mesh.cpp index 5d9adccaac..bf4291869f 100644 --- a/scene/resources/navigation_mesh.cpp +++ b/scene/resources/navigation_mesh.cpp @@ -590,19 +590,6 @@ void NavigationMesh::_validate_property(PropertyInfo &p_property) const { #ifndef DISABLE_DEPRECATED bool NavigationMesh::_set(const StringName &p_name, const Variant &p_value) { - String prop_name = p_name; - if (prop_name.find("/") != -1) { - // Compatibility with pre-3.5 "category/path" property names. - prop_name = prop_name.replace("/", "_"); - if (prop_name == "sample_partition_type_sample_partition_type") { - set_sample_partition_type((NavigationMesh::SamplePartitionType)p_value.operator int()); - } else if (prop_name == "filter_filter_walkable_low_height_spans") { - set_filter_walkable_low_height_spans(p_value); - } else { - set(prop_name, p_value); - } - return true; - } if (p_name == "polygon_verts_per_poly") { // Renamed in 4.0 beta 9. set_vertices_per_polygon(p_value); return true; @@ -611,19 +598,6 @@ bool NavigationMesh::_set(const StringName &p_name, const Variant &p_value) { } bool NavigationMesh::_get(const StringName &p_name, Variant &r_ret) const { - String prop_name = p_name; - if (prop_name.find("/") != -1) { - // Compatibility with pre-3.5 "category/path" property names. - prop_name = prop_name.replace("/", "_"); - if (prop_name == "sample_partition_type_sample_partition_type") { - r_ret = get_sample_partition_type(); - } else if (prop_name == "filter_filter_walkable_low_height_spans") { - r_ret = get_filter_walkable_low_height_spans(); - } else { - r_ret = get(prop_name); - } - return true; - } if (p_name == "polygon_verts_per_poly") { // Renamed in 4.0 beta 9. r_ret = get_vertices_per_polygon(); return true; |