Merge pull request #36219 from dragmz/dragmz/oob_write
Fix OOB write when calling MultiMesh::set_instance_transform
This commit is contained in:
commit
2d23ea1d42
|
@ -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
|
ERR_FAIL_UNSIGNED_INDEX(region_index, data_cache_dirty_region_count); //bug
|
||||||
#endif
|
#endif
|
||||||
if (!multimesh->data_cache_dirty_regions[region_index]) {
|
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++;
|
multimesh->data_cache_used_dirty_regions++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue