Extend SGAllowRiggedMeshSelection to work in inspect and on others
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<key>SGAllowRiggedMeshSelection</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Allow selection of your worn rigged meshes in build mode</string>
|
||||
<string>Allow selection of worn rigged meshes in build or inspect mode</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user