Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix compilation failure with deprecated=no builds

Daniel Kinsman9b77def19597
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp
index 9b062ded1c0..0b90b09a8d9 100644
--- a/scene/resources/mesh.cpp
+++ b/scene/resources/mesh.cpp
@@ -1339,6 +1339,7 @@ void _fix_array_compatibility(const Vector<uint8_t> &p_src, uint64_t p_old_forma
}
}
+#ifndef DISABLE_DEPRECATED
static inline Vector<uint8_t> _convert_index_data_to_16_bit(const Vector<uint8_t> &p_array_index_data, int p_index_count) {
Vector<uint8_t> index_data_16;
index_data_16.resize(p_index_count * sizeof(uint16_t));
@@ -1349,6 +1350,7 @@ static inline Vector<uint8_t> _convert_index_data_to_16_bit(const Vector<uint8_t
}
return index_data_16;
}
+#endif
bool ArrayMesh::_set(const StringName &p_name, const Variant &p_value) {
String sname = p_name;