diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-11-29 20:33:13 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-11-29 20:33:13 +0200 |
commit | 27e4e245d948e4d11f78a272d969b533cfe65fbf (patch) | |
tree | eeef5d10decb9caa671eb8d9e42b02a4c11a6b72 /indra/newview/llkeyconflict.cpp | |
parent | 7a0ca277f82acd2511a5dbf33956c1665d14b957 (diff) | |
parent | cba1daaf6be4dfd031cd10d9aea07c7124d32726 (diff) |
Merge branch 'DRTVWR-542-meshopt' into DRTVWR-546
Diffstat (limited to 'indra/newview/llkeyconflict.cpp')
-rw-r--r-- | indra/newview/llkeyconflict.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llkeyconflict.cpp b/indra/newview/llkeyconflict.cpp index b6107eeedf..d7a17b237e 100644 --- a/indra/newview/llkeyconflict.cpp +++ b/indra/newview/llkeyconflict.cpp @@ -730,13 +730,19 @@ void LLKeyConflictHandler::resetToDefault(const std::string &control_name, U32 i { return; } + LLKeyConflict &type_data = mControlsMap[control_name]; + if (!type_data.mAssignable) + { + return; + } LLKeyData data = getDefaultControl(control_name, index); - if (data != mControlsMap[control_name].getKeyData(index)) + if (data != type_data.getKeyData(index)) { // reset controls that might have been switched to our current control removeConflicts(data, mControlsMap[control_name].mConflictMask); mControlsMap[control_name].setKeyData(data, index); + mHasUnsavedChanges = true; } } |