Fix T43858: Collision Bounds Display Bug

Was using draw-type when drawing BGE collision bounds.
This commit is contained in:
Campbell Barton 2015-03-09 17:24:14 +11:00
parent 29e5de3728
commit 09e072a245
Notes: blender-bot 2023-02-14 09:26:04 +01:00
Referenced by issue #43858, Collision Bounds Display Bug
1 changed files with 2 additions and 2 deletions

View File

@ -7830,10 +7830,10 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
if ((dt <= OB_SOLID) && !render_override) {
if (((ob->gameflag & OB_DYNAMIC) &&
!ELEM(ob->collision_boundtype, OB_BOUND_TRIANGLE_MESH, OB_BOUND_CONVEX_HULL)) ||
((ob->gameflag & OB_BOUNDS) == 0)) ||
((ob->gameflag & OB_BOUNDS) &&
(ob->boundtype == OB_BOUND_SPHERE)))
(ob->collision_boundtype == OB_BOUND_SPHERE)))
{
float imat[4][4], vec[3] = {0.0f, 0.0f, 0.0f};