Commit Graph

52921 Commits (e01c4477450857be7b20ffd7db402738fad31946)

Author SHA1 Message Date
Andrey Kleshchev e01c447745 #4581 Crash on LL::GLTF::copy
Tried to initialize LLVector2 TexCoords with vector3 data?
2025-08-20 22:32:42 +03:00
Andrey Kleshchev a27acaf356 #4583 Crash on LLInventoryPanel::itemChanged 2025-08-20 22:32:42 +03:00
Andrey Kleshchev 143de1ddbf #4284 Reorder window shutdown 2025-08-19 23:16:06 +03:00
Signal Linden 07daeb4632
Revert "Remove the first login screen (#4451)" (#4578)
* Revert "Remove the first login screen (#4451)"

This reverts commit b82f52acbb.

* Revert "#4451 Remove missed first login image"

This reverts commit 8eb2429a16.
2025-08-19 12:22:36 -07:00
Andrey Kleshchev 434f9e9271 #4544 Make model dump go into logs
not into work folder, viewer isn't supposed to write there.
2025-08-19 00:05:14 +03:00
Andrey Kleshchev b96c7ec6e6 #4518 Dupplicates can appear in favorites
if parent and child gets added back to back
2025-08-19 00:04:57 +03:00
Maxim Nikolenko a9a2e7c633
#4557 fix lags in outfit search with many outfits 2025-08-18 16:21:01 +03:00
Andrey Kleshchev 89b8490ded #4544 Fix extension check being case sensitive 2025-08-16 17:25:01 +03:00
Andrey Kleshchev 99001eaa4f #4561 Crash at initializeURLHistory 2025-08-15 20:23:40 +03:00
Andrey Kleshchev d5cc91e1f1 #4559 Crash at killCacheEntry 2025-08-15 19:59:22 +03:00
Andrey Kleshchev 548727ab00 #4537 Some links were missing favorite options 2025-08-15 18:37:52 +03:00
Andrey Kleshchev 37a04baf10 #4544 Add source format information to mesh upload statistics 2025-08-15 00:16:46 +03:00
Andrey Kleshchev 479618097b #4541 Fix reused message
it was also in use by local bitmaps
2025-08-14 21:28:06 +03:00
Andrey Kleshchev d859557c18 #4541 Cap image upload size to prevent issues 2025-08-13 23:07:12 +03:00
Jonathan "Geenz" Goodman 024da37b8b
Add support for Normalized Frametime Variation (NVFT) (#4395)
* Add support for Normalized Frametime Variation (NVFT)

* Add normalized period jitter
2025-08-13 13:48:55 -04:00
Andrey Kleshchev 82e6e42b9e #4527 Crash trying to upload a huge image
Raw image permits only a 256 MB buffer so this isn't unexpected.
2025-08-13 00:21:28 +03:00
Andrey Kleshchev 922d2324d0 #4535 Revert "Fix: ignore *pass-on* counters when detecting left-button grabs (#3990)"
This reverts commit 65d70a8d8f.
2025-08-12 20:54:29 +03:00
Roxie Linden f7f06063c7 Fix issue where p2p calls were coming up muted even thought the UI said they were not. 2025-08-12 20:32:09 +03:00
Andrey Kleshchev ea24792fec #4524 LLControlVariable error 2025-08-12 20:31:00 +03:00
Andrey Kleshchev 1bcdf6824c #4473 Enable Zoom in to Self menu option in chat 2025-08-12 20:31:00 +03:00
Andrey Kleshchev ca069b5b4f #4522 Crash at shouldAllowFirstMediaInteraction 2025-08-12 14:00:02 +03:00
Andrey Kleshchev 2308328660 #4284 Better window shutdown logging
To help investigate shutdown freeze
2025-08-11 22:36:22 +03:00
Maxim Nikolenko 28b9609f7b
#4420 Fix chat log reading issue with certain characters 2025-08-11 21:20:09 +03:00
Andrey Kleshchev 2c0db0cd0c Bump viewer version to 7.2.1 2025-08-11 16:32:21 +03:00
Andrey Kleshchev 8a29c10e86 #4334 Crash at getIsDynamic #2
A TPV dev asked to change this, so that ref wouldn't be called on some
environments.
2025-08-11 04:22:41 +03:00
Jonathan "Geenz" Goodman 5b1c783be7
Merge pull request #4494 from secondlife/roxie/fix-4419
Straighten out muting to prevent echo when crossing from vivox to webrtc regions near a webrtc region boundary.
2025-08-08 18:43:32 -04:00
Roxie Linden bab2c12d04 Straighten out muting to prevent echo when crossing from vivox to webrtc regions.
Muting was a bit random in the code, so it's now been straightened out and should
prevent echo.

Also, code was added to not attempt connection to non-webrtc regions in the webrtc code.
2025-08-08 14:37:46 -07:00
Andrey Kleshchev 8ef660a745 #4503 Crash at openHeaderEntriesFile 2025-08-08 22:37:35 +03:00
Andrey Kleshchev 93a66b4764 #4470 Hide discord panel when set to build without discord 2025-08-07 00:34:12 +03:00
Andrey Kleshchev 6459a3c5aa #4297 Crash on LLVOCache::writeToCache
handle/iter existed, but entry was null
2025-08-07 00:34:12 +03:00
Andrey Kleshchev 55f1c8b979
Merge pull request #4492 Merge Develop into Maint-C (2025.06)
Merge Develop into Maint-C (2025.06)
2025-08-06 18:41:52 +03:00
Andrey Kleshchev ce9d66cdd1 Merge branch develop into 2025.06
# Conflicts:
#	indra/newview/llvoavatar.cpp
2025-08-06 16:05:19 +03:00
Andrey Kleshchev 0f68bcd46c Revert "#4400 Model Import "use lod above" was not updating"
This reverts commit e05b32a030.
Looks like I had a better fix in 2025.06
2025-08-06 14:43:18 +03:00
Andrey Kleshchev 819817f5c9 #4470 Temporarily disable Discord SDK 2025-08-06 14:39:11 +03:00
Andrey Kleshchev acc8928330
Merge release/2025.05 into develop 2025-08-06 14:17:18 +03:00
Andrey Kleshchev c25df5224f #3564 Permit 'labeling' audio streams that play via media plugin
People were using fmod's undocumented capability to ignore everything
after the url to label their streams.
2025-08-06 10:10:22 +03:00
Andrey Kleshchev c8f1890f96 #4473 Permit zooming to self in people panel 2025-08-05 22:23:54 +03:00
Andrey Kleshchev c267497509 #4470 Adjustments and Mac build fixes 2025-08-05 18:26:29 +03:00
Andrey Kleshchev 8eb2429a16 #4451 Remove missed first login image 2025-08-05 18:26:29 +03:00
Andrey Kleshchev 61d53a8731 #4470 Plug in Discord SDK package 2025-08-05 18:26:29 +03:00
Andrey Kleshchev f338b91f7c #4483 Fix gltf not opening unicode paths 2025-08-04 18:20:50 +03:00
Andrey Lihatskiy 7255933d2a #3785 Set default `MediaFirstClickInteract` value to 31 (Landowner objects) 2025-08-02 13:22:30 +00:00
Maxim Nikolenko 8240af03b9
#4465 modify vertex limit threshold for starting splitting 2025-07-31 19:55:28 +03:00
Andrey Kleshchev a33fda4f28 #4339 Remade fix for world map's find button 2025-07-31 18:56:32 +03:00
Erik Kundiman afcc64cb07
Rich Presence support using Discord Social SDK (#4457)
* Rich Presence support using Discord Social SDK

Download DiscordSocialSdk-1.4.9649.zip from
https://discord.com/developers/applications/1394782217405862001/social-sdk/downloads
Add -DUSE_DISCORD:BOOL=ON to your cmake line.
The Discord app needs to be set to be a public client in the OAuth2 tab.
All Discord-related code are contained within one file, llstartup.cpp,
and other classes access it through some opaque layer, static functions,
otherwise we'd get these "duplicate symbol" linking errors.

* Move Discord-related code to llappviewer.cpp

The doFrame is the one called over and over again, so running the
Discord callbacks from there shouldn't have one extra function
overhead, while running the Discord initialisation is only once so
it's much more okay to have the extra function overhead there.

* panel_preferences_privacy tabs

Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml

* Shorten Discord-related local variable names

* Connect to Discord now through privacy tab

Now the access token is saved the way passwords are saved, but
without a username, so we can have some persistence without having
to implement an OAuth2 backend server cause we would have to store
those tokens there anyway still, and it's just simpler to not go
that way. Discord Social SDK doesn't have a helper for sending code
to a custom server anyway, that we would have to have some
asynchronous HTTP requestor ready.
Show location check button gets enabled only when Discord
integration is enabled, though it's not functioning yet.

* Location for Discord Rich Presence Activity State

I was going to use LLAgentUI::buildLocationString but there's no
location format that shows only region and coords without having
to have the parcel name empty, so I copied buildLocationString
implementation in the case of LOCATION_FORMAT_NO_MATURITY but when
the parcel name is empty.
I had to make updateDiscordActivity check agent's ID and the
existence of agent avatar pointer first before trying to set
Activity Details or State, cause I like the "Show location" button
be checkable not only after online when both the ID & pointer will
have existed. I think this way is simpler than programmatically
enabling the "Show location" button after the user is logged in.
I put a trigger to Activity update somewhere after the user is
logged in for now, not yet after a TP.
The elapsed time gets reset whenever Activity is updated for now,
but I'll try to make elapsed time extended instead.
No Party for now, because I couldn't find a way to make a Party
shown without showing its CurrentSize (I could still get away not
showing its MaxSize by setting it to 0), so the State (location)
is shown above the elapsed time, not on the right of it.
I'll try to figure out to get some representative numbers for its
CurrentSize & MaxSize next.
Also no privacy on hiding the username for now, until the UI is
ready.

* Update Rich Presence location on region change

I had to find a spot in source code where it doesn't cause a crash
(it did in LLAgent::setRegion), but I'm not removing the one in
llstartup.cpp because on login, the one in llviewermessage.cpp
gets only the placeholder coords (10, 10, 10).

* Show display name too on Discord Rich Presence

Avatar name cache can be used right away upon login now after I
moved the update call to the end of PRECACHE section in llstartup.

* Show Discord Rich Presence Activity Party

By setting CurrentSize to the number of people within chat radius,
and MaxSize to the number of people within near range.

* Call updateDiscordActivity too in Discord init

so when the user enables the integration after being logged in,
the init can show the name and location right away.

* Discord Rich Presence: Hide name & connect to llappviewer.cpp

Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp

* Discord time elapsed not reset on region change

Time elapses right after viewer launch even before login.
Plus parameter name change in header to make it the same as in
implementation.

* Cache bool setting retrievals in updateDiscordActivity

As suggested by Andrey Kleschev.
getBOOL and getF32 are expensive, so using `static LLCachedControl<>`
is the way to do it in llappviewer.cpp.

* Check Discord creds existence before getting token

as suggested by Andrey Kleshchev, anticipating external factors
such as user moving settings from another PC.

* Tracy visibility for looped Discord function calls

As suggested by Andrey Kleshchev. They likely can get pricey so
they need to be visible in the profiler.

* Discord-related error handling/logging

plus delay saving Discord credentials to only after the access
token is successfully updated on Discord, and try to disconnect
from Discord when the integration gets disabled regardless whether
there are credentials to delete or not and whether there's an
access token to revoke or not.

* Use getAvatars already called for Discord Party numbers

so we don't have to make any extra getAvatars calls just for this,
as it's pricy in crowds, and we'll just be piggybacking
`updateSpeakerList` and `updateNearbyList`.

* Assemble Discord Activity Details only once

by saving it to a static global string for reuse.

* Remove updateDiscordActivity call in startup loop

The State field (region & coords) is updated well enough without it
now.

* Rename handleDiscordSocial to toggleDiscordIntegration

* Update Discord Activity only when integration is enabled

No need to check setting for the status change callback one,
because getting there would need to be connected to Discord first,
which in turn needs the integration to be enabled first.

---------

Co-authored-by: Secret Foxtail <remmy@megapahit.net>
2025-07-31 08:54:39 -07:00
Andrey Kleshchev afe5d29b96 #4460 debug text cannot be scrolled
setText was being called repeatedly and was forcing scroll up.
Also fixed a typo in floater_test_slapp.xml
2025-07-30 03:13:10 +03:00
Kyler Eastridge 2c91aed07b Add explaination as to why we do clearing inside effect set* functions 2025-07-29 20:12:46 +03:00
Kyler Eastridge c9aae542d6 Add tool tips to the new privacy features 2025-07-29 20:12:46 +03:00
Kyler Eastridge 38a6a4b1cd Fix spelling issue in settings.xml 2025-07-29 20:12:46 +03:00
Kyler Eastridge aae33e4ef2 It's a target, not a hint 2025-07-29 20:12:46 +03:00