You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Fixes crash when saving scene
This commit is contained in:
@@ -3208,9 +3208,9 @@ Vector<float> RasterizerStorageRD::multimesh_get_buffer(RID p_multimesh) const {
|
|||||||
|
|
||||||
Vector<uint8_t> buffer = RD::get_singleton()->buffer_get_data(multimesh->buffer);
|
Vector<uint8_t> buffer = RD::get_singleton()->buffer_get_data(multimesh->buffer);
|
||||||
Vector<float> ret;
|
Vector<float> ret;
|
||||||
ret.resize(multimesh->instances);
|
ret.resize(multimesh->instances * multimesh->stride_cache);
|
||||||
{
|
{
|
||||||
float *w = multimesh->data_cache.ptrw();
|
float *w = ret.ptrw();
|
||||||
const uint8_t *r = buffer.ptr();
|
const uint8_t *r = buffer.ptr();
|
||||||
copymem(w, r, buffer.size());
|
copymem(w, r, buffer.size());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user