aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:58 -0500
committerJacek Antonelli2008-08-15 23:44:58 -0500
commit089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch)
tree0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/newview/llselectmgr.cpp
parentSecond Life viewer sources 1.16.0.5 (diff)
downloadmeta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2
meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r--linden/indra/newview/llselectmgr.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index ec7ba78..5086432 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -121,7 +121,7 @@ LLColor4 LLSelectMgr::sHighlightParentColor;
121LLColor4 LLSelectMgr::sHighlightChildColor; 121LLColor4 LLSelectMgr::sHighlightChildColor;
122LLColor4 LLSelectMgr::sContextSilhouetteColor; 122LLColor4 LLSelectMgr::sContextSilhouetteColor;
123 123
124static LLObjectSelection* get_null_object_selection(); 124static LLObjectSelection *get_null_object_selection();
125template<> 125template<>
126 const LLHandle<LLObjectSelection>::NullFunc 126 const LLHandle<LLObjectSelection>::NullFunc
127 LLHandle<LLObjectSelection>::sNullFunc = get_null_object_selection; 127 LLHandle<LLObjectSelection>::sNullFunc = get_null_object_selection;
@@ -145,14 +145,26 @@ struct LLDeRezInfo
145// 145//
146 146
147 147
148static LLPointer<LLObjectSelection> sNullSelection;
149
148// 150//
149// Functions 151// Functions
150// 152//
151 153
152LLObjectSelection* get_null_object_selection() 154void LLSelectMgr::cleanupGlobals()
155{
156 delete gSelectMgr;
157 gSelectMgr = NULL;
158 sNullSelection = NULL;
159}
160
161LLObjectSelection *get_null_object_selection()
153{ 162{
154 static LLObjectSelection null_selection; 163 if (sNullSelection.isNull())
155 return &null_selection;; 164 {
165 sNullSelection = new LLObjectSelection;
166 }
167 return sNullSelection;
156} 168}
157 169
158 170