diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-28 15:47:18 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-28 15:47:18 -0500 |
commit | 39ee498af0b7e1381b6249365550f21024ef1ef8 (patch) | |
tree | 972e0b076f6a033dfe52316cb131df3547c98df5 /indra/newview/llspatialpartition.cpp | |
parent | ba8ddcf2419dbc20e4045ebfae93a63fb34b9047 (diff) |
MAINT-678 Fix for inconsistent data in physics shape display
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r-- | indra/newview/llspatialpartition.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index d82b62dc19..999733d7b7 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -3495,6 +3495,8 @@ void renderPhysicsShapes(LLSpatialGroup* group) LLViewerObject* object = drawable->getVObj(); if (object && object->getPCode() == LLViewerObject::LL_VO_SURFACE_PATCH) { + gGL.pushMatrix(); + gGL.multMatrix((F32*) object->getRegion()->mRenderMatrix.mMatrix); //push face vertices for terrain for (S32 i = 0; i < drawable->getNumFaces(); ++i) { @@ -3516,6 +3518,7 @@ void renderPhysicsShapes(LLSpatialGroup* group) } } } + gGL.popMatrix(); } } } |