mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05:00
Fix MultiMesh errors in editor and resource duplication
(cherry picked from commit cb94652c34)
This commit is contained in:
@@ -197,6 +197,9 @@ Vector<Color> MultiMesh::_get_custom_data_array() const {
|
||||
#endif // DISABLE_DEPRECATED
|
||||
|
||||
void MultiMesh::set_buffer(const Vector<float> &p_buffer) {
|
||||
if (instance_count == 0) {
|
||||
return;
|
||||
}
|
||||
RS::get_singleton()->multimesh_set_buffer(multimesh, p_buffer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user