diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-10-03 10:29:11 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-10-03 10:29:11 +0100 |
| commit | 0fd67838cf011e81f18822f699e8a140d4f761ad (patch) | |
| tree | b3497572426efa86f7ed2107d48a06cbd1954082 /indra/newview/llspatialpartition.cpp | |
| parent | 5bb0b393a9ee634db1fbbde2645a6374704e184c (diff) | |
SL-966 - tweaks to scale/pos constraint logic
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index f25ab0709b..32aa974bf1 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -2178,8 +2178,8 @@ void renderBoundingBox(LLDrawable* drawable, BOOL set_color = TRUE) { bool has_pos_constraint = (cav->mPositionConstraintFixup != LLVector3()); bool has_scale_constraint = (cav->mScaleConstraintFixup != 1.0f); - F32 r = 1.0f * has_scale_constraint; - F32 g = 1.0f * has_pos_constraint; + F32 r = 0.5 + 0.5 * has_scale_constraint; + F32 g = 0.5 + 0.5 * has_pos_constraint; gGL.diffuseColor4f(r,g,0,1); } else |
