diff options
author | Dave Parks <davep@lindenlab.com> | 2010-12-01 17:00:22 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-12-01 17:00:22 -0600 |
commit | 398b392dc06f10b643d9930ffc6fd50f611b570b (patch) | |
tree | 5cc3d89ae2c0aca8567dbfd33c5fa3b1ec847c49 /indra/newview/llpanelface.cpp | |
parent | 7738548af89fd0f343fa90f890ad7598be70d47c (diff) |
SH-391 Do some bounds checking on texture entry indices when aligning planar faces.
Diffstat (limited to 'indra/newview/llpanelface.cpp')
-rw-r--r-- | indra/newview/llpanelface.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index bce496cbad..07c7f35989 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -376,6 +376,11 @@ struct LLPanelFaceSetAlignedTEFunctor : public LLSelectedTEFunctor return true; } + if (facep->getViewerObject()->getVolume()->getNumVolumeFaces() <= te) + { + return true; + } + bool set_aligned = true; if (facep == mCenterFace) { @@ -418,6 +423,12 @@ struct LLPanelFaceGetIsAlignedTEFunctor : public LLSelectedTEFunctor { return false; } + + if (facep->getViewerObject()->getVolume()->getNumVolumeFaces() <= te) + { //volume face does not exist, can't be aligned + return false; + } + if (facep == mCenterFace) { return true; |