aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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