summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-06-13 19:00:20 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-06-13 19:00:20 +0300
commitd72fcfba57c02f2577f3b4f3d132ddfa515dd894 (patch)
tree1527f11e4bc3801a46dba556274268470a67294b /indra/newview/llagent.cpp
parent31a22910c1df637970b66e91b0fd1dc5975aa33c (diff)
SL-11402 Resaving home image if file does not exist
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 4bd3ca9157..925cec0871 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -3709,6 +3709,23 @@ BOOL LLAgent::getHomePosGlobal( LLVector3d* pos_global )
return TRUE;
}
+bool LLAgent::isInHomeRegion()
+{
+ if(!mHaveHomePosition)
+ {
+ return false;
+ }
+ if (!getRegion())
+ {
+ return false;
+ }
+ if (getRegion()->getHandle() != mHomeRegionHandle)
+ {
+ return false;
+ }
+ return true;
+}
+
void LLAgent::clearVisualParams(void *data)
{
if (isAgentAvatarValid())