Merge pull request #98541 from ydeltastar/zero-multi-fix

Fix `MultiMesh` errors in editor and resource duplication
This commit is contained in:
Rémi Verschelde 2024-11-29 22:46:38 +01:00
commit 7f5ffdf787
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -195,6 +195,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);
}