Fix shadow mesh recursion.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user