diff options
author | Dave Parks <davep@lindenlab.com> | 2013-06-20 17:17:54 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-06-20 17:17:54 -0500 |
commit | af860d09532f929510da0d4da7e965a0df4e6944 (patch) | |
tree | 3da3140b1d9d8e180b2b0446d9ef35f38ceb8a7c /indra/newview | |
parent | 4e46ce5520cb3d8793921c2a0f9e67f16ad776ba (diff) |
Try to track down some bad bounding boxes in particles.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llvopartgroup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llvopartgroup.cpp b/indra/newview/llvopartgroup.cpp index d3c035ecdc..8ed86b4fd5 100755 --- a/indra/newview/llvopartgroup.cpp +++ b/indra/newview/llvopartgroup.cpp @@ -353,6 +353,10 @@ BOOL LLVOPartGroup::updateGeometry(LLDrawable *drawable) inv_camera_dist_squared = 1.f / camera_dist_squared; else inv_camera_dist_squared = 1.f; + + llassert(llfinite(inv_camera_dist_squared)); + llassert(!llisnan(inv_camera_dist_squared)); + F32 area = part->mScale.mV[0] * part->mScale.mV[1] * inv_camera_dist_squared; tot_area = llmax(tot_area, area); |