Merge pull request #35495 from ericrybick/35373-softbodies-love-to-occupy-center-stage

Fix Softbody always spawns from world center [gles2]
This commit is contained in:
Rémi Verschelde 2020-01-24 09:50:09 +01:00 committed by GitHub
commit 1c6d1fcf95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {