summaryrefslogtreecommitdiff
path: root/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-10-10 20:39:02 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-10-10 20:39:02 +0100
commit47cb1a25fe63743ea7788933020493b3c45a8472 (patch)
tree3dcfa6aef5cd7a40d8b1e230bf4f7171bfadd273 /indra/newview/llspatialpartition.cpp
parent9ad912b601425bef843bfc45e9d8075623c37584 (diff)
SL-9849 - color tweaks for dynamic bounding box. show impostor extents varies line thickness depending on how recently impostor was generated
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r--indra/newview/llspatialpartition.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index 32aa974bf1..1dc1e65fe5 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -2178,9 +2178,14 @@ 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 = 0.5 + 0.5 * has_scale_constraint;
- F32 g = 0.5 + 0.5 * has_pos_constraint;
- gGL.diffuseColor4f(r,g,0,1);
+ if (has_pos_constraint || has_scale_constraint)
+ {
+ gGL.diffuseColor4f(1,0,0,1);
+ }
+ else
+ {
+ gGL.diffuseColor4f(0,1,0.5,1);
+ }
}
else
{