Fix shadow mesh recursion.

This commit is contained in:
Radiant
2024-08-31 22:31:43 +03:00
parent 739019e4e4
commit 70860aafd8
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -743,6 +743,7 @@ String MeshStorage::mesh_get_path(RID p_mesh) const {
}
void MeshStorage::mesh_set_shadow_mesh(RID p_mesh, RID p_shadow_mesh) {
ERR_FAIL_COND_MSG(p_mesh == p_shadow_mesh, "Cannot set a mesh as its own shadow mesh.");
Mesh *mesh = mesh_owner.get_or_null(p_mesh);
ERR_FAIL_NULL(mesh);