summaryrefslogtreecommitdiff
path: root/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-05-13 14:54:56 -0500
committerDave Parks <davep@lindenlab.com>2010-05-13 14:54:56 -0500
commitd334a9e645ab14c2822f35ee67d2c1e0f2a646a6 (patch)
treea38a1d5147f55380f1e0fb110e2680ab8e9975a6 /indra/newview/llspatialpartition.cpp
parent65acaab16ffaa4cc6bed0934973ead659df20741 (diff)
Vis that works and first pass at fetching prim cost.
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r--indra/newview/llspatialpartition.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index 025c5084c3..f11195303e 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -2670,6 +2670,11 @@ void renderPhysicsShape(LLDrawable* drawable)
const LLMeshDecomposition* decomp = gMeshRepo.getDecomposition(mesh_id);
if (decomp)
{
+ if (volume->getObjectCost() == -1)
+ {
+ gObjectList.updateObjectCost(volume);
+ }
+
gGL.pushMatrix();
glMultMatrixf((F32*) volume->getRelativeXform().mMatrix);
static std::vector<LLColor4U> color;
@@ -2688,7 +2693,7 @@ void renderPhysicsShape(LLDrawable* drawable)
buff->setBuffer(LLVertexBuffer::MAP_VERTEX);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
- glColor4ubv(color[i].mV);
+ glColor3ub(color[i].mV[0], color[i].mV[1], color[i].mV[2]);
buff->drawArrays(LLRender::TRIANGLES, 0, buff->getNumVerts());
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);