diff options
author | James Cook <james@lindenlab.com> | 2009-12-08 16:29:02 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-12-08 16:29:02 -0800 |
commit | 8b514c721afd0934450242b367e836739f5abadf (patch) | |
tree | a94886f2c9f0b6438eab7c97be0732aba7b774db /indra/newview/llselectmgr.cpp | |
parent | 85272b3d69b981329143cf40a28022a903a0ae9d (diff) | |
parent | a65473957f16f9cfba8ed10b87218d65d64519ef (diff) |
Merge backout
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 } //----------------------------------------------------------------------------- |