Merge pull request #64749 from tefusion/fix_skeleton_editor_mesh_free_errors

Fix typo in RendererSceneCull which caused mesh_free errors
This commit is contained in:
Rémi Verschelde 2022-08-25 18:54:25 +02:00 committed by GitHub
commit 5d78ab4388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -506,7 +506,7 @@ void RendererSceneCull::instance_set_base(RID p_instance, RID p_base) {
}
if (instance->mesh_instance.is_valid()) {
RSG::mesh_storage->mesh_free(instance->mesh_instance);
RSG::mesh_storage->mesh_instance_free(instance->mesh_instance);
instance->mesh_instance = RID();
// no need to set instance data flag here, as it was freed above
}