summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-24 09:50:09 +0100
committerGitHub <noreply@github.com>2020-01-24 09:50:09 +0100
commit1c6d1fcf956b882fc8a14fa595b7f1e9b15e1574 (patch)
treed62f2012d438e380219e2309e92dcea6ce2a4521
parenta1ffa3edc228eac8f46b354633f3d85100430885 (diff)
parent3d4a2a09f6b3587bd6aed48677b476da5db52721 (diff)
Merge pull request #35495 from ericrybick/35373-softbodies-love-to-occupy-center-stage
Fix Softbody always spawns from world center [gles2]
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index c633d17cca..cd6a7d86c6 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -2692,6 +2692,7 @@ void RasterizerStorageGLES2::mesh_set_custom_aabb(RID p_mesh, const AABB &p_aabb
ERR_FAIL_COND(!mesh);
mesh->custom_aabb = p_aabb;
+ mesh->instance_change_notify(true, false);
}
AABB RasterizerStorageGLES2::mesh_get_custom_aabb(RID p_mesh) const {