diff options
author | Jacek Antonelli | 2008-08-15 23:45:38 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:38 -0500 |
commit | d7f00c03e236098b10ad5e30d35a0f159eb17255 (patch) | |
tree | d45c68b3a638b0545c88c1f644a6b9a689ce58e0 /linden/indra/newview/llselectmgr.cpp | |
parent | Second Life viewer sources 1.19.1.2 (diff) | |
download | meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.zip meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.gz meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.bz2 meta-impy-d7f00c03e236098b10ad5e30d35a0f159eb17255.tar.xz |
Second Life viewer sources 1.19.1.3
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index da71c6b..366f770 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -4650,14 +4650,14 @@ void LLSelectMgr::updateSilhouettes() | |||
4650 | iter != roots.end(); iter++) | 4650 | iter != roots.end(); iter++) |
4651 | { | 4651 | { |
4652 | LLViewerObject* objectp = *iter; | 4652 | LLViewerObject* objectp = *iter; |
4653 | LLSelectNode* rect_select_root_node = new LLSelectNode(objectp, TRUE); | ||
4654 | rect_select_root_node->selectAllTEs(TRUE); | ||
4655 | |||
4656 | if (!canSelectObject(objectp)) | 4653 | if (!canSelectObject(objectp)) |
4657 | { | 4654 | { |
4658 | continue; | 4655 | continue; |
4659 | } | 4656 | } |
4660 | 4657 | ||
4658 | LLSelectNode* rect_select_root_node = new LLSelectNode(objectp, TRUE); | ||
4659 | rect_select_root_node->selectAllTEs(TRUE); | ||
4660 | |||
4661 | if (!select_linked_set) | 4661 | if (!select_linked_set) |
4662 | { | 4662 | { |
4663 | rect_select_root_node->mIndividualSelection = TRUE; | 4663 | rect_select_root_node->mIndividualSelection = TRUE; |
@@ -5666,6 +5666,12 @@ void LLSelectMgr::validateSelection() | |||
5666 | 5666 | ||
5667 | BOOL LLSelectMgr::canSelectObject(LLViewerObject* object) | 5667 | BOOL LLSelectMgr::canSelectObject(LLViewerObject* object) |
5668 | { | 5668 | { |
5669 | // Never select dead objects | ||
5670 | if (!object || object->isDead()) | ||
5671 | { | ||
5672 | return FALSE; | ||
5673 | } | ||
5674 | |||
5669 | if (mForceSelection) | 5675 | if (mForceSelection) |
5670 | { | 5676 | { |
5671 | return TRUE; | 5677 | return TRUE; |
@@ -5678,9 +5684,6 @@ BOOL LLSelectMgr::canSelectObject(LLViewerObject* object) | |||
5678 | return FALSE; | 5684 | return FALSE; |
5679 | } | 5685 | } |
5680 | 5686 | ||
5681 | // Can't select dead objects | ||
5682 | if (object->isDead()) return FALSE; | ||
5683 | |||
5684 | // Can't select orphans | 5687 | // Can't select orphans |
5685 | if (object->isOrphaned()) return FALSE; | 5688 | if (object->isOrphaned()) return FALSE; |
5686 | 5689 | ||