Commit Graph

49147 Commits (d48c77b6dcfc6eafba09b58f530bbfa4f00a9431)

Author SHA1 Message Date
Maxim Nikolenko e154fee226
SL-20541 Reorder radio buttons in Edit tools Texture tab to match order in a Material 2023-10-30 16:40:04 +02:00
Nat Goodspeed f7d2d40b30 DRTVWR-587: Fix LL::apply(function, LLSD array).
We define a specialization of LLSDParam<const char*> to support passing an
LLSD object to a const char* function parameter. Needless to remark, passing
object.asString().c_str() would be Bad: destroying the temporary std::string
returned by asString() would immediately invalidate the pointer returned by
its c_str(). But when you pass LLSDParam<const char*>(object) as the
parameter, that specialization itself stores the std::string so the c_str()
pointer remains valid as long as the LLSDParam object does.

Then there's LLSDParam<LLSD>, used when we don't have the parameter type
available to select the LLSDParam specialization. LLSDParam<LLSD> defines a
templated conversion operator T() that constructs an LLSDParam<T> to provide
the actual parameter value. So far, so good.

The trouble was with the implementation of LLSDParam<LLSD>: it constructed a
_temporary_ LLSDParam<T>, implicitly called its operator T() and immediately
destroyed it. Destroying LLSDParam<const char*> destroyed its stored string,
thus invalidating the c_str() pointer before the target function was entered.

Instead, make LLSDParam<LLSD>::operator T() capture each LLSDParam<T> it
constructs, extending its lifespan to the lifespan of the LLSDParam<LLSD>
instance. For this, derive each LLSDParam specialization from LLSDParamBase, a
trivial base class that simply establishes the virtual destructor. We can then
capture any specialization as a pointer to LLSDParamBase.

Also restore LazyEventAPI tests on Mac.
2023-10-29 11:56:17 -04:00
Nat Goodspeed 2667653d41 DRTVWR-587: Skip Visual Studio LLSDParam<const char*> tests for now.
They do work fine on clang... unblocking the rest of the team during diagnosis.
2023-10-27 15:40:20 -04:00
cosmic-linden fb0bbba9c9
Merge pull request #478 from secondlife/SL-20536
SL-20536: Fix build error C1128 on Windows RelWithDebInfo
2023-10-26 13:33:32 -07:00
Cosmic Linden a35356a39c SL-20536: Fix build error C1128. secondlife-bin object file too big. Compile with /bigobj 2023-10-26 13:32:50 -07:00
Brad Linden 0fe058f9b8 Fix build.yaml line that got dropped in the merge. 2023-10-26 10:37:19 -07:00
Brad Linden 3ecce24f9f Removed dead code after merge breaking the build 2023-10-25 16:57:18 -07:00
Brad Linden 26163e2154 Fix DRTVWR-559 std::array usage in llrender and llprimitive after merge 2023-10-25 16:44:14 -07:00
Brad Linden 673b3309dd Merge remote-tracking branch 'origin/main' into DRTVWR-559 2023-10-25 16:12:13 -07:00
Andrey Kleshchev e7c586246c D587 Post merge fmod issues fix 2023-10-26 01:12:29 +03:00
Andrey Kleshchev 34b83e4047 Post merge build fix 2023-10-25 23:37:23 +03:00
Andrey Lihatskiy d41c5c851b Merge remote-tracking branch 'origin/main' into DRTVWR-587-maint-V 2023-10-25 21:46:18 +03:00
Nat Goodspeed e4d6a08941 SL-18837: Build all branches on GitHub now. 2023-10-25 14:39:31 -04:00
Andrey Lihatskiy 6a08f99368 Merge branch 'main' into DRTVWR-587-maint-V 2023-10-25 21:37:09 +03:00
Nat Goodspeed 732fedbe8f Increment viewer version to 6.6.17
following promotion of DRTVWR-578
2023-10-25 14:31:48 -04:00
Andrey Lihatskiy 4c6ae49c88 Merge branch 'main' into DRTVWR-587-maint-V
# Conflicts:
#	autobuild.xml
#	indra/llcommon/tests/llleap_test.cpp
#	indra/newview/viewer_manifest.py
2023-10-25 21:28:26 +03:00
cosmic-linden 887226c7d2
Merge pull request #471 from secondlife/SL-20065
SL-20065: Hack to reduce black spots on shiny water
2023-10-25 10:02:50 -07:00
Dave Parks 5c558a92c9 DRTVWR-559 Fix for mac build 2023-10-25 10:36:50 -05:00
Cosmic Linden 3ea1faf73c SL-20065: Hack to reduce black spots on shiny water 2023-10-24 17:50:49 -07:00
RunitaiLinden 4cf5f34fc3 SL-20090 Don't use llassert_always in texture fetching code. 2023-10-24 12:53:34 -05:00
RunitaiLinden 4710fcf167 SL-20456 Fix for probe updates stopping after opening personal lighting or editing a sky setting. 2023-10-23 16:10:10 -05:00
RunitaiLinden a29f7c3b4a SL-20498 Preserve default probe when resetting reflection probes. 2023-10-23 13:54:00 -05:00
Andrey Lihatskiy a97d505480 SL-16661 dmg installer update 2023-10-20 04:49:02 +03:00
Nat Goodspeed 2e8e96cfbc PIE-1057: viewer-build-util's azure branch has been merged to main. 2023-10-18 17:44:07 -04:00
Nat Goodspeed ce791fdc59 PIE-1057: Merge branch 'actions-azure' into actions
for new Windows code signing mechanism.
2023-10-18 17:41:52 -04:00
RunitaiLinden baaf698e29 Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559 2023-10-18 14:54:21 -05:00
RunitaiLinden 1fe76ad0b9 SL-20149 Potential fix for crash when unsitting on a reflection probe. Also fix for assertion in lltexturefetch. 2023-10-18 14:54:07 -05:00
Jonathan "Geenz" Goodman b3fb5a92ea Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer into DRTVWR-559 2023-10-17 15:59:31 -07:00
Jonathan "Geenz" Goodman f5294527f5 Update settings.xml
SL-20154
2023-10-17 15:59:14 -07:00
Jonathan "Geenz" Goodman 652d9a76a4
Merge pull request #457 from secondlife/SL-20392
Prepend the material name to each texture.

SL-20392
2023-10-17 15:46:15 -07:00
Jonathan "Geenz" Goodman 89fe8d6133 Update llmaterialeditor.cpp
SL-20392
2023-10-17 15:37:36 -07:00
Jonathan "Geenz" Goodman 4db38a86cb Update llmaterialeditor.cpp
SL-20392
2023-10-17 15:31:48 -07:00
Jonathan "Geenz" Goodman 1cb0e6d46d Merge branch 'DRTVWR-559' of https://github.com/secondlife/viewer into DRTVWR-559 2023-10-17 14:47:04 -07:00
Jonathan "Geenz" Goodman fe2e3e4702 Fix for SL-19283 2023-10-17 14:47:01 -07:00
Andrey Kleshchev 7d75853261 SL-20461 Don't display 'sky converted to HDR' message when opening water 2023-10-17 23:35:35 +03:00
Nat Goodspeed 651353560b SL-20476: Don't let the compiler know we intend to crash.
clang has gotten smart enough to recognize an inline attempt to store to
address zero. Fool it by storing to an address passed as a parameter, and pass
nullptr from a different source file.
2023-10-17 14:56:10 -04:00
Maxim Nikolenko 4c7920778f
SL-20457 allow creating new items from the right-click context menu 2023-10-17 18:12:13 +03:00
Nat Goodspeed 117f07e5a4 SL-18837: Avoid stuffing build number into 32-bit int.
Even though LLVersionInfo::getBuild() already returns a 64-bit int, various
consumers assumed it could fit into 32 bits. It was especially bad to pass it
to a classic C style varargs function. Only on a little-endian CPU, and only
because it was the last argument, the damage was limited to truncation --
instead of arbitrary undefined behavior.

Where the consumer doesn't support 64-bit ints, pass as string instead.
2023-10-17 06:33:05 -04:00
Nat Goodspeed 19f453fc20 SL-18837: Second Life Release.app=>Second Life Viewer.app in tarball 2023-10-16 19:46:37 -04:00
Nat Goodspeed 016023c780 SL-18837: Create Second Life Viewer.app, not Second Life Release.app 2023-10-16 19:04:23 -04:00
RunitaiLinden 108b46079a SL-20473 Add GenericStreamingMessage and dummy handler to suppress packet loss and log spam noise when visiting GLTF enabled regions. 2023-10-16 16:21:20 -05:00
RunitaiLinden dedda64d70 Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559 2023-10-16 13:55:02 -05:00
RunitaiLinden 09aedbb7a9 SL-20258 Fix for LSL spamming new probes into the scene deadlocking probe updater. Add probe update debug display. 2023-10-16 13:54:38 -05:00
Andrey Kleshchev b6a201f702 SL-20382 Warn when moving no-copy items on drop 2023-10-16 21:12:33 +03:00
RunitaiLinden 71d0603773 Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559 2023-10-13 15:32:42 -05:00
RunitaiLinden 20f1ca9297 SL-20448 Fix for worn animesh corrupting octree bounding boxes. 2023-10-13 15:32:23 -05:00
Nat Goodspeed f6d872a027 PIE-1057: Pass sign-pkg-windows@azure the Azure-related secrets. 2023-10-13 15:11:30 -04:00
Maxim Nikolenko b877e80d70
SL-20464 Don't allow enetring non-unicode material name 2023-10-13 20:08:02 +03:00
cosmic-linden cba7163355
Merge pull request #442 from secondlife/SL-20062
SL-20062: Fix near clip on reflection probes being clamped to at or below 10
2023-10-13 09:14:54 -07:00
Nat Goodspeed 56911455e0 SL-18837: Update dullahan to v118.0.5993.54
This includes this week's CEF 118.
2023-10-13 09:32:53 -04:00