diff options
author | richard <none@none> | 2009-12-08 11:53:00 -0800 |
---|---|---|
committer | richard <none@none> | 2009-12-08 11:53:00 -0800 |
commit | a4f53bf15364cc7d16b71f195437f33fb057c4e5 (patch) | |
tree | 0cbd4bd7e30de1425bcc8c0c463edc955046cf5a /indra/newview/llselectmgr.cpp | |
parent | 25a773d79cc8b2e00f6769abe0717ac9b2325cd4 (diff) | |
parent | fa4d3e186741e89be62cf41da27c97820aa74982 (diff) |
merge
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rw-r--r-- | indra/newview/llselectmgr.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 1605838b94..c8b86118be 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5753,8 +5753,19 @@ 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) - return const_cast<LLSelectMgr*>(this)->mSelectedObjects->getFirstDeleteableObject() != NULL; // HACK: casting away constness - MG + 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; } //----------------------------------------------------------------------------- |