Extend SGAllowRiggedMeshSelection to work in inspect and on others

This commit is contained in:
Lirusaito
2014-03-13 01:31:11 -04:00
parent 850772a4ce
commit d98c46beb0
2 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@
#include "llvolumeoctree.h"
#include "llviewercamera.h"
#include "llface.h"
#include "llfloaterinspect.h"
#include "llfloatertools.h"
#include "llviewercontrol.h"
#include "llviewerregion.h"
@@ -4372,7 +4373,7 @@ public:
if (vobj->isAvatar())
{
LLVOAvatar* avatar = (LLVOAvatar*) vobj;
if (avatar->isSelf() && gFloaterTools->getVisible())
if (gFloaterTools->getVisible() || LLFloaterInspect::instanceExists())
{
LLViewerObject* hit = avatar->lineSegmentIntersectRiggedAttachments(mStart, mEnd, -1, mPickTransparent, mFaceHit, &intersection, mTexCoord, mNormal, mTangent);
if (hit)