Skip to content
Snippets Groups Projects
Commit 73551b3f authored by Kitty Barnett's avatar Kitty Barnett
Browse files

- fixed : an optionless @detach=force (or @remattach=force) results in a crash (thankies Yan)

--HG--
branch : RLVa
parent 2b1297a6
No related branches found
No related tags found
No related merge requests found
......@@ -129,14 +129,14 @@ public:
/*virtual*/ ~RlvCommandOptionGeneric() {}
public:
/*virtual*/ bool isAttachmentPoint() const { return typeid(LLViewerJointAttachment*) == m_varOption.type(); }
/*virtual*/ bool isAttachmentPointGroup() const { return typeid(ERlvAttachGroupType) == m_varOption.type(); }
/*virtual*/ bool isAttachmentPoint() const { return (!isEmpty()) && (typeid(LLViewerJointAttachment*) == m_varOption.type()); }
/*virtual*/ bool isAttachmentPointGroup() const { return (!isEmpty()) && (typeid(ERlvAttachGroupType) == m_varOption.type()); }
/*virtual*/ bool isEmpty() const { return m_fEmpty; }
/*virtual*/ bool isSharedFolder() const { return typeid(LLViewerInventoryCategory*) == m_varOption.type(); }
/*virtual*/ bool isString() const { return typeid(std::string) == m_varOption.type(); }
/*virtual*/ bool isUUID() const { return typeid(LLUUID) == m_varOption.type(); }
/*virtual*/ bool isSharedFolder() const { return (!isEmpty()) && (typeid(LLViewerInventoryCategory*) == m_varOption.type()); }
/*virtual*/ bool isString() const { return (!isEmpty()) && (typeid(std::string) == m_varOption.type()); }
/*virtual*/ bool isUUID() const { return (!isEmpty()) && (typeid(LLUUID) == m_varOption.type()); }
/*virtual*/ bool isValid() const { return true; } // This doesn't really have any significance for the generic class
/*virtual*/ bool isWearableType() const { return typeid(LLWearableType::EType) == m_varOption.type(); }
/*virtual*/ bool isWearableType() const { return (!isEmpty()) && (typeid(LLWearableType::EType) == m_varOption.type()); }
/*virtual*/ LLViewerJointAttachment* getAttachmentPoint() const
{ return (isAttachmentPoint()) ? boost::get<LLViewerJointAttachment*>(m_varOption) : RlvCommandOption::getAttachmentPoint(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment