diff options
author | Loren Shih <seraph@lindenlab.com> | 2009-12-09 14:53:12 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2009-12-09 14:53:12 -0500 |
commit | f7215a5d7cb4f6431bbd63c42617b0a3dd207ac3 (patch) | |
tree | 0d84524f0269a6b982db3376658df19a9eebf7c1 /indra/newview/llselectmgr.cpp | |
parent | 96d5f52624d68768592893ee0b27a0589b0f6222 (diff) | |
parent | 2c0cea901712ffad012356278d72e3c3d844e5bc (diff) |
automated merge viewer2.0->avp
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rw-r--r-- | indra/newview/llselectmgr.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index c8b86118be..1605838b94 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5753,19 +5753,8 @@ void LLSelectMgr::redo() //----------------------------------------------------------------------------- BOOL LLSelectMgr::canDoDelete() const { - bool can_delete = false; - LLViewerObject* obj = const_cast<LLSelectMgr*>(this)->mSelectedObjects->getFirstDeleteableObject() ; // HACK: casting away constness - MG // Note: Can only delete root objects (see getFirstDeleteableObject() for more info) - if (obj!= NULL) - { - // all the faces needs to be selected - if(const_cast<LLSelectMgr*>(this)->mSelectedObjects->contains(obj,SELECT_ALL_TES )) - { - can_delete = true; - } - } - - return can_delete; + return const_cast<LLSelectMgr*>(this)->mSelectedObjects->getFirstDeleteableObject() != NULL; // HACK: casting away constness - MG } //----------------------------------------------------------------------------- |