summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerparcelmgr.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-09-19 15:31:23 -0700
committerRider Linden <rider@lindenlab.com>2018-09-19 15:31:23 -0700
commitcae08e0096f75827851a8c9447e163ddb0132f2d (patch)
tree512d05c8082a654569d9602a42e4f0874b39bac2 /indra/newview/llviewerparcelmgr.cpp
parent1ef89151bda78b39f44071cfdbb28f1f0450b436 (diff)
SL-9661: Trigger an event when the settings on a parcel or region are changed. Environment panel montiors this event and updates itself when it occurs.
Diffstat (limited to 'indra/newview/llviewerparcelmgr.cpp')
-rw-r--r--indra/newview/llviewerparcelmgr.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp
index 5a393220c3..c83e27ceed 100644
--- a/indra/newview/llviewerparcelmgr.cpp
+++ b/indra/newview/llviewerparcelmgr.cpp
@@ -1312,6 +1312,13 @@ const std::string& LLViewerParcelMgr::getAgentParcelName() const
}
+const S32 LLViewerParcelMgr::getAgentParcelId() const
+{
+ if (mAgentParcel)
+ return mAgentParcel->getLocalID();
+ return INVALID_PARCEL_ID;
+}
+
void LLViewerParcelMgr::sendParcelPropertiesUpdate(LLParcel* parcel, bool use_agent_region)
{
if(!parcel)