diff options
| author | Rider Linden <rider@lindenlab.com> | 2018-09-10 14:49:14 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2018-09-10 14:49:14 -0700 |
| commit | 6246c8077e5ee81321cff52250d3b99eab81cd57 (patch) | |
| tree | 628a009259c799e4a1888cc3162c330b63327db2 /indra/newview/llfloatereditextdaycycle.cpp | |
| parent | 2fd4ce55af8c68b8ae5eea72566cdb6d87d3a842 (diff) | |
MAINT-9118: Allow the environment panel to indicated that the environment may be modified.
Diffstat (limited to 'indra/newview/llfloatereditextdaycycle.cpp')
| -rw-r--r-- | indra/newview/llfloatereditextdaycycle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp index 2295e4f10b..166d53fc74 100644 --- a/indra/newview/llfloatereditextdaycycle.cpp +++ b/indra/newview/llfloatereditextdaycycle.cpp @@ -114,6 +114,7 @@ namespace { const std::string LLFloaterEditExtDayCycle::KEY_INVENTORY_ID("inventory_id"); const std::string LLFloaterEditExtDayCycle::KEY_EDIT_CONTEXT("edit_context"); const std::string LLFloaterEditExtDayCycle::KEY_DAY_LENGTH("day_length"); +const std::string LLFloaterEditExtDayCycle::KEY_CANMOD("canmod"); const std::string LLFloaterEditExtDayCycle::VALUE_CONTEXT_INVENTORY("inventory"); const std::string LLFloaterEditExtDayCycle::VALUE_CONTEXT_PARCEL("parcel"); @@ -234,6 +235,11 @@ void LLFloaterEditExtDayCycle::onOpen(const LLSD& key) mEditContext = CONTEXT_REGION; } + if (key.has(KEY_CANMOD)) + { + mCanMod = key[KEY_CANMOD].asBoolean(); + } + if (mEditContext == CONTEXT_UNKNOWN) { LL_WARNS("ENVDAYEDIT") << "Unknown editing context!" << LL_ENDL; |
