From 086b9e0c59a51b47b657727c6bc7e5d10f83e6c5 Mon Sep 17 00:00:00 2001 From: Ricardo Buring Date: Thu, 2 Feb 2023 23:31:27 +0100 Subject: Notify dependencies when setting custom mesh AABB Fixes SoftBody3D culling issues. --- drivers/gles3/storage/mesh_storage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gles3/storage') diff --git a/drivers/gles3/storage/mesh_storage.cpp b/drivers/gles3/storage/mesh_storage.cpp index 5ba0c5a09c..3f8fddacff 100644 --- a/drivers/gles3/storage/mesh_storage.cpp +++ b/drivers/gles3/storage/mesh_storage.cpp @@ -491,6 +491,8 @@ void MeshStorage::mesh_set_custom_aabb(RID p_mesh, const AABB &p_aabb) { Mesh *mesh = mesh_owner.get_or_null(p_mesh); ERR_FAIL_COND(!mesh); mesh->custom_aabb = p_aabb; + + mesh->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_AABB); } AABB MeshStorage::mesh_get_custom_aabb(RID p_mesh) const { -- cgit v1.2.3