aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-12-03 17:52:09 +1000
committerDavid Walter Seikel2011-12-03 17:52:09 +1000
commita1f82acebab97347d49a941f67a6df0ce78c29a6 (patch)
treefe5fed4cfd272195072961e883a0e360a279c1b7 /linden/indra/newview/lltoolpie.cpp
parent/me grins. (diff)
downloadmeta-impy-a1f82acebab97347d49a941f67a6df0ce78c29a6.zip
meta-impy-a1f82acebab97347d49a941f67a6df0ce78c29a6.tar.gz
meta-impy-a1f82acebab97347d49a941f67a6df0ce78c29a6.tar.bz2
meta-impy-a1f82acebab97347d49a941f67a6df0ce78c29a6.tar.xz
Another possible fix for misplaced HUDs?
From singularity commit 69e733ea86ebd7cd5a4acb40ef87735e5c428c53 by Shyotl. From singularity commit 080407d92f2846397472be1ab533a9da7f8b66cb by Shyotl. From singularity commit 88df12ddb6cecf7d46d64531123e4adc23862db1 by Shyotl. Plus some extra fom singularity, but not sure where it came from.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolpie.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index 429b9d4..7cab0eb 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -394,6 +394,13 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
394 object = (LLViewerObject*)object->getParent(); 394 object = (LLViewerObject*)object->getParent();
395 } 395 }
396 396
397// From singularity commit 080407d92f2846397472be1ab533a9da7f8b66cb by Shyotl.
398// TODO: Is THIS what is causing HUD monsters to cause crashes?
399 if (!object)
400 {
401 return TRUE; // unexpected, but escape
402 }
403
397 // Object is an avatar, so check for mute by id. 404 // Object is an avatar, so check for mute by id.
398 LLVOAvatar* avatar = (LLVOAvatar*)object; 405 LLVOAvatar* avatar = (LLVOAvatar*)object;
399 std::string name = avatar->getFullname(); 406 std::string name = avatar->getFullname();