Skip to content

Commit

Permalink
Fix Softbody always spawns from world center [gles2]
Browse files Browse the repository at this point in the history
Fixes #35373
  • Loading branch information
ericrybick committed Jan 24, 2020
1 parent 93aba68 commit 3d4a2a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gles2/rasterizer_storage_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d4a2a0

Please sign in to comment.