Commit Graph

46565 Commits (d2294841b2df66f4e684b5eed1cae955cea21cf8)

Author SHA1 Message Date
Maxim Nikolenko 020bfa66ba SL-18923 Add Reset to default settings button 2023-01-10 22:55:47 +02:00
Andrey Kleshchev a66ea0a908 SL-12437 Long avatar names should stay as one string 2023-01-10 22:09:47 +02:00
Andrey Kleshchev 5d6371f568 SL-18937 Update contributions 2023-01-10 20:05:01 +02:00
akleshchev 9dcf206691
SL-18937 Merge pull request #45 from PanteraPolnocy/contribute
Translate missing control_*, floater_* menu_* and few panel_* files in Polish directory; Fix localizability in various English XMLs
2023-01-10 19:47:53 +02:00
akleshchev f3cd329b58
SL-18911 My Land Holdings floater crashes viewer on the Xcode/+Monterey branches (#47)
Revert part of "DRTVWR-575: Address review comments on Xcode 14.1 type tweaks."
Crash was reproduced when assigning areastr to llsd, but likely present in other cases of assigning ui strings to llsd (instead of going for lluistring's result directly copy constructor was engaged and either copy or original crashed due to invalid pointers, copy shouldn't have been created).
2023-01-10 19:38:44 +02:00
Maxim Nikolenko 495e34b84f SL-18922 FIXED Imposters load with attachments using Perf floater 2023-01-10 16:29:28 +02:00
Fawrsk 7419037ef6
SL-18893 Fixes for pull requests #38, #41, and #42 (#46)
Eliminate unnecessary copies, and remove uses of auto
2023-01-10 11:43:27 +02:00
akleshchev 9c250f1a9e
SL-18893 Cleanup for loops in llcommon to use C++11 range based for loops (#44)
* Cleanup for loops in llcommon to use C++11 range based for loops
* Eliminate needless copies
2023-01-10 11:38:34 +02:00
Fawrsk 8767e6995b Eliminate needless copies 2023-01-09 19:19:12 -04:00
PanteraPolnocy 77444ca356 Translate missing control_*, floater_* menu_* and few panel_* files in Polish directory; Fix localizability in various English XMLs 2023-01-07 20:36:50 +01:00
Andrey Kleshchev 30678472ee Revert "SL-18911 [MAC] My Land Holdings floater crashes when not empty"
This reverts commit d6f5e5bc94.
2023-01-07 18:59:39 +02:00
Fawrsk 9e743c99fb Cleanup for loops in llcommon to use C++11 range based for loops 2023-01-07 00:38:12 -04:00
Andrey Kleshchev d6f5e5bc94 SL-18911 [MAC] My Land Holdings floater crashes when not empty 2023-01-07 01:10:22 +02:00
Andrey Kleshchev 7196c8c2ed SL-17659 Reset button for user profile 2023-01-06 02:48:25 +02:00
Maxim Nikolenko 24839c8cf6 SL-18884 Remove dead spot from Back button 2023-01-05 19:13:57 +02:00
Andrey Kleshchev 73933fe778 SL-18894 The change of 'modify rights' is not recorded in IM history if the user is in DND mode
Revert of commit for SL-15401. Messages are supposed to handle 'mute' on their own.
2023-01-05 18:21:53 +02:00
Fawrsk d0f115ae09
SL-18893 Cleanup for loops in llcharacter to use C++11 range based for loops (#42) 2023-01-05 13:42:27 +02:00
Fawrsk bdfb47cc6b
SL-18893 Clean up for loops in llaudio to use C++11 range based for loops (#41) 2023-01-05 03:06:12 +02:00
Andrey Kleshchev 3fd86c2f23 SL-18871 Debug setting's description is not scrollable 2023-01-05 01:34:03 +02:00
Nat Goodspeed 99c040ea99 DRTVWR-575: Fix possible bad indexing in LLSD::operator[](size_t).
One could argue that passing a negative index to an LLSD array should do
something other than shrug and reference element [0], but as that's legacy
behavior, it seems all too likely that the viewer sometimes relies on it.

This specific problem arises if the index passed to operator[]() is negative
-- either with the previous Integer parameter or with size_t (which of course
reinterprets the negative index as hugely positive). The non-const
ImplArray::ref() overload checks parameter 'i' and, if it appears negative,
sets internal 'index' to 0.

But in the next stanza, if (index >= existing size()), it calls resize() to
scale the internal array up to one more than the requested index. The trouble
is that it passed resize(i + 1), not the adjusted resize(index + 1).

With a requested index of exactly -1, that would pass resize(0), which would
result in the ensuing array[0] reference being invalid.

With a requested index less than -1, that would pass resize(hugely positive)
-- since, whether operator[]() accepts signed LLSD::Integer or size_t,
resize() accepts std::vector::size_type. Given that the footprint of an LLSD
array element is at least a pointer, the number of bytes required for
resize(hugely positive) is likely to exceed available heap storage.

Passing the adjusted resize(index + 1) should defend against that case.
2023-01-04 17:18:31 -05:00
Andrey Kleshchev 64a42aceba SL-18904 Remove unused translation files 2023-01-04 23:52:41 +02:00
akleshchev 5bc16b94cc
SL-18904 Merge pull request #40 from PanteraPolnocy
A small batch of changes in Polish translation subdirectory
2023-01-04 23:36:40 +02:00
Andrey Kleshchev 5ea7cec092 SL-18893 Update list of contributors 2023-01-04 22:21:20 +02:00
Nat Goodspeed 4093d5b1eb DRTVWR-575: Use llsdutil.h functions for LLFloaterLandHoldings LLSD
LLFloaterLandHoldings::postBuild() was constructing an LLSD structure by
assigning each map entry and array element one at a time. Chorazinallen
identified a crash bug possibly caused by destroying that LLSD structure.
Diagnostically try building it using nested llsd::map() and llsd::array()
calls instead to see if that improves matters.
2023-01-04 15:13:02 -05:00
Maxim Nikolenko 61a08406c7 SL-18892 FIXED Mac build fails locally 2023-01-04 20:27:12 +02:00
Nat Goodspeed aa112ef17f DRTVWR-575: Fix bug in macOS micro_sleep().
The compiler was deducing an unsigned type for the difference (U64 desired
microseconds - half KERNEL_SLEEP_INTERVAL_US). When the desired sleep was less
than that constant, the difference went hugely positive, resulting in a very
long snooze.

Amusingly, forcing that U64 result into an S32 num_sleep_intervals worked only
*because* of integer truncation: the high-order bits were discarded, resulting
in a negative result as intended.

Ensuring that both integer operands are signed at the outset, though, produces
a more formally correct result.
2023-01-04 12:04:56 -05:00
Nat Goodspeed bb718155bd DRTVWR-575: Replace some LLSDArray() usage with llsd::array().
It seems newer compilers have a different interpretation of exactly when to
engage LLSDArray's copy constructor. In particular, this assignment:

some_LLSD_map[key] = LLSDArray(...)(...)...;

used to convert the LLSDArray object directly to LLSD; now it first calls the
custom copy constructor, which embeds the intended array within an outer array
before assigning it into the containing map.

The newer llsd::array() function avoids that problem because what it returns
is already an LLSD object.

Taking inventory of LLSDArray assignments of that form turned up a number of
workarounds like LLSD(LLSDArray(...)). Replacing those with llsd::array() is
both simpler and more readable.

Tip of the hat to Chorazinallen for surfacing this issue!
2023-01-03 18:06:45 -05:00
PanteraPolnocy bfa8239361 Polish translation: Leftovers cleanup (files not present in /en/) 2023-01-03 23:21:24 +01:00
PanteraPolnocy 030be1d14f Widgets cleanup in Polish translation (up to 6.6.9), fix translatability for density_ctrl.xml file 2023-01-03 23:03:17 +01:00
Fawrsk 74a9280c69
SL-18893 Clean up for loops in llappearance to use C++11 range based for loops (#38) 2023-01-03 23:08:15 +02:00
Pantera Północy 43496fe04e
SL-18891 Remove duplicate entry in settings file 2023-01-03 21:49:23 +02:00
Andrey Kleshchev 9ef48676d4 SL-18874 Rigged mesh upload crash when using Bounding Box physics 2023-01-03 14:36:11 +02:00
Andrey Kleshchev 6f522084ed SL-18426 At log in only a part friends reported to chat as online
Server sends updates in bulk now, so notify per agent instead of per update
2022-12-20 02:03:03 +02:00
Maxim Nikolenko 200e185dff SL-18857 FIXED Editing attachment before Shape can stop av turning for user 2022-12-16 17:27:38 +02:00
Andrey Kleshchev 07baa83ef2 SL-18384 Fix NSException for keyboard handling
Affects accent keys for diacritical marks
2022-12-16 16:31:42 +02:00
Andrey Kleshchev 796d97d190 SL-18384 Fix NSException for keyboard handling
Affects accent keys for diacritical marks
2022-12-14 20:55:22 +02:00
Maxim Nikolenko efb96d8c6e SL-18786 Display updater on the top of other windows 2022-12-14 15:36:24 +02:00
Andrey Kleshchev 0ffe9ff0ae SL-15175 Updates for TP states while the viewer is minimized 2022-12-13 21:25:16 +02:00
Maxim Nikolenko da373e66cb mac build fix - remove unused variables 2022-12-13 18:10:26 +02:00
Maxim Nikolenko a783d6c02e retrigger build 2022-12-13 15:36:47 +02:00
Mnikolenko Productengine 553a98723b Merge branch 'main' into DRTVWR-539
# Conflicts:
#	doc/contributions.txt
#	indra/newview/llappviewer.cpp
#	indra/newview/skins/default/colors.xml
2022-12-13 08:05:03 +02:00
akleshchev e5bd3fc5fe
SL-15175 Merge pull request #26 from sldevel/contribute
Fix failures to update the TP states while the viewer is minimized.
2022-12-13 04:20:42 +02:00
Nat Goodspeed fe4f0fc728 DRTVWR-565: Merge branch 'main' into contribute 2022-12-12 15:27:38 -05:00
Nat Goodspeed 6a97e13115 DRTVWR-565: Merge branch 'master' into contribute 2022-12-12 15:24:29 -05:00
Callum Prentice f7838ca17c Merge branch 'main' into DRTVWR-568 2022-12-12 11:13:10 -08:00
Andrey Lihatskiy f836194516 Merge branch 'main' into DRTVWR-570-maint-Q
# Conflicts:
#	doc/contributions.txt
#	indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
#	indra/newview/llfloater360capture.cpp
2022-12-12 20:53:11 +02:00
Nat Goodspeed a0c3d69c62 Increment viewer version to 6.6.9
following promotion of DRTVWR-565
2022-12-12 13:41:50 -05:00
Nat Goodspeed 12f66fda13 DRTVWR-565: Merge branch 'origin/contribute' into DRTVWR-565 2022-12-12 13:27:57 -05:00
Andrey Lihatskiy b4dd4271a1 SL-16874 Added tool tips to buttons displayed by llDialog() 2022-12-12 20:22:50 +02:00
Andrey Kleshchev 2b7ba3f904 Merge branch 'xcode-14.1' into contribute 2022-12-12 17:44:47 +02:00