From d334a9e645ab14c2822f35ee67d2c1e0f2a646a6 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Thu, 13 May 2010 14:54:56 -0500 Subject: Vis that works and first pass at fetching prim cost. --- indra/newview/llspatialpartition.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra/newview/llspatialpartition.cpp') 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 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); -- cgit v1.2.3