aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-02-20 17:07:34 +0100
committerArmin Weatherwax2010-04-28 19:15:02 +0200
commitac1eed6ff3e2ef03858256da76fd8408dcc79e9a (patch)
tree33ee9ac87dfd08b7c98a22a2023de134c2574d84 /linden/indra/newview/lltoolpie.cpp
parentMerge commit 'jacek/next' into next (diff)
downloadmeta-impy-ac1eed6ff3e2ef03858256da76fd8408dcc79e9a.zip
meta-impy-ac1eed6ff3e2ef03858256da76fd8408dcc79e9a.tar.gz
meta-impy-ac1eed6ff3e2ef03858256da76fd8408dcc79e9a.tar.bz2
meta-impy-ac1eed6ff3e2ef03858256da76fd8408dcc79e9a.tar.xz
fix: crash on relog; appearence self pie greyed out after relog.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolpie.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index 626831f..0241d81 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -149,6 +149,7 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
149 // didn't click in any UI object, so must have clicked in the world 149 // didn't click in any UI object, so must have clicked in the world
150 LLViewerObject *object = mPick.getObject(); 150 LLViewerObject *object = mPick.getObject();
151 LLViewerObject *parent = NULL; 151 LLViewerObject *parent = NULL;
152 bool is_self = (object == gAgent.getAvatarObject());
152 153
153 if (mPick.mPickType != LLPickInfo::PICK_LAND) 154 if (mPick.mPickType != LLPickInfo::PICK_LAND)
154 { 155 {
@@ -283,7 +284,7 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
283 } 284 }
284 object = (LLViewerObject*)object->getParent(); 285 object = (LLViewerObject*)object->getParent();
285 } 286 }
286 if (object && object == gAgent.getAvatarObject()) 287 if (object && is_self)
287 { 288 {
288 // we left clicked on avatar, switch to focus mode 289 // we left clicked on avatar, switch to focus mode
289 LLToolMgr::getInstance()->setTransientTool(LLToolCamera::getInstance()); 290 LLToolMgr::getInstance()->setTransientTool(LLToolCamera::getInstance());
@@ -323,16 +324,16 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
323 effectp->setColor(LLColor4U(gAgent.getEffectColor())); 324 effectp->setColor(LLColor4U(gAgent.getEffectColor()));
324 effectp->setDuration(0.25f); 325 effectp->setDuration(0.25f);
325 } 326 }
326 else if (mPick.mObjectID == gAgent.getID() ) 327 else if (object && is_self)
327 { 328 {
328 if(!gPieSelf) 329// if(gPieSelf)
329 { 330// {
330 //either at very early startup stage or at late quitting stage, 331 //either at very early startup stage or at late quitting stage,
331 //this event is ignored. 332 //this event is ignored.
332 return TRUE ; 333 gPieSelf->show(x, y, mPieMouseButtonDown);
333 } 334// }
335
334 336
335 gPieSelf->show(x, y, mPieMouseButtonDown);
336 } 337 }
337 else if (object) 338 else if (object)
338 { 339 {