mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
fix oob write when calling MultiMesh::set_instance_transform
This commit is contained in:
parent
282c8dda98
commit
2842c6a88c
@ -2471,7 +2471,7 @@ void RasterizerStorageRD::_multimesh_mark_dirty(MultiMesh *multimesh, int p_inde
|
||||
ERR_FAIL_UNSIGNED_INDEX(region_index, data_cache_dirty_region_count); //bug
|
||||
#endif
|
||||
if (!multimesh->data_cache_dirty_regions[region_index]) {
|
||||
multimesh->data_cache_dirty_regions[p_index] = true;
|
||||
multimesh->data_cache_dirty_regions[region_index] = true;
|
||||
multimesh->data_cache_used_dirty_regions++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user