summaryrefslogtreecommitdiff
path: root/indra/newview
AgeCommit message (Collapse)Author
2024-09-27Migrate ~LLPointer()'s peculiar warning case to llpointer.cpp.Nat Goodspeed
This allows removing #include "llerror.h" from llpointer.h. Also remove #include "llmutex.h" as a heavy way to get <boost/functional/hash.hpp>. That requires adding #include "llmutex.h" to llimage.h, llnotifications.h, llwatchdog.cpp and llvolumemgr.cpp, which were inheriting it from llpointer.h.
2024-09-26Merge remote branch 'develop' into marchcat/xcode-16Nat Goodspeed
2024-09-26Rename our lerp() to flerp(); call where MSVC balks at std::lerp().Nat Goodspeed
Now the lerp() in global namespace is std::lerp(), but it remains true that for some calls to std::lerp(), MSVC issues fatal argument conversion warnings. In those places, call flerp() (our historic lerp()) instead.
2024-09-26Reinstate our lerp() function, avoid "math.h" header.Nat Goodspeed
For reasons that remain unclear, MSVC likes our lerp() function better than its own std::lerp() function: publishing the latter into the global namespace, instead of defining our own, produces fatal argument conversion warnings. "math.h" publishes all of <cmath> into the global namespace, which causes a GCC conflict between std::lerp() and our lerp() function. Including <cmath> instead leaves std::lerp() in the std namespace, eliminating the conflict.
2024-09-26Fix a few more fsyspath conversions, removing explicit u8string().Nat Goodspeed
2024-09-25Adapt `fsyspath` for C++20 conventions.Nat Goodspeed
In C++20, `std::filesystem::u8path()` (that accepts a UTF-8 encoded `std::string` and returns a `std::filesystem::path`) is deprecated. Instead, to engage UTF-8 coding conversions, we're supposed to pass the `path` constructor a `std::u8string`, i.e. a `std::basic_string<char8_t>`. Since `char8_t` is a type distinct from both `char` and `unsigned char`, we must Do Something to pass a UTF-8 encoded `std::string` into `std::filesystem::path`. To avoid copying characters from a `std::string` into a temporary `std::u8string` and from there into the `std::filesystem::path`, make a `boost::transform_iterator` that accepts a `std::string_view::iterator` and adapts it to dereference `char8_t` characters. Make `fsyspath(std::string_view)` engage the base-class constructor accepting (iterator, iterator), adapting `string_view::begin()` and `end()` to deliver `char8_t` characters. Use the same tactic for `fsyspath::operator=(std::string_view)`, explicitly calling `std::filesystem::path::assign()` with the adapted iterators. To resolve ambiguities, provide both constructors and assignment operators accepting `(const std::string&)` and `(const char*)`, explicitly converting each to `std::string_view`. At the same time, `std::filesystem::path::u8string()` now returns `std::u8string` rather than `std::string`. Since `std::filesystem::path` delivers only that `std::u8string` rather than iterators into its internal representation, we can't avoid capturing it and copying to the returned `std::string`. Remove explicit `.u8string()` calls from a few existing `fsyspath` instances, now that `fsyspath` supports implicit conversion to `std::string`.
2024-09-26Force snapshot update when opening a snapshot panel and the resolution is ↵Ansariel
"Current Window" to determine correct image size and upload cost
2024-09-25Remove incorrectly calculated upload fee from snapshot options button based ↵Ansariel
on previously selected snapshot type and not necessarily snapshot to inventory
2024-09-25Fix upload cost calculation for snapshots to inventory based on encoded ↵Ansariel
image size and display upload cost to user
2024-09-25Remove orphaned LLPanelOutfitSnapshotInventoryAnsariel
2024-09-25More improvements and cleanup of LLViewerParcelOverlay (#2678)Ansariel Hiller
2024-09-25#2650 Add UI controls for debug settings: RenderTonemapMix RenderTonemapTypeMaxim Nikolenko
2024-09-25Merge branch 'develop' into marchcat/xcode-16Nat Goodspeed
2024-09-25#2674 Optimize LLWorld::renderPropertyLines() - use simplified linesAlexander Gavriliuk
2024-09-24Add Lua scripts to viewer source treeAnsariel
2024-09-24Make `LLPointer` equality comparisons accept not-identical types.Nat Goodspeed
That is, both `LLPointer::operator==()` and `operator!=()` and the free function `operator==()` and `operator!=()` now accept pointer types other than the type of the subject `LLPointer`, letting the compiler apply implicit pointer conversions or diagnose an error.
2024-09-24#2559 No mouseover if a link is embedded with an emojiAlexander Gavriliuk
2024-09-24Merge pull request #2534 from secondlife/release/luau-scriptingnat-goodspeed
Add Lua scripting to develop, behind feature flag
2024-09-24Reduce memory allocations pinging the mainloop timeoutAnsariel
2024-09-24Performance improvements and cleanup in llviewerdisplay.cppAnsariel
2024-09-23Merge remote 'release/luau-scripting' into release/luau-scriptingNat Goodspeed
2024-09-24Restore WebRTC shutdown fix (#2658)Ansariel Hiller
2024-09-23Merge remote branch 'develop' into release/luau-scripting for Maint BNat Goodspeed
2024-09-23Merge branch 'develop' into marchcat/b-developAndrey Lihatskiy
# Conflicts: # indra/newview/llfeaturemanager.cpp # indra/newview/llviewertexturelist.cpp # indra/newview/llvoicewebrtc.cpp
2024-09-23Merge remote branch 'develop' into release/luau-scriptingNat Goodspeed
2024-09-23viewer#2631 Couple small tweaksAndrey Kleshchev
2024-09-23Merge remote branch 'develop'into release/luau-scriptingNat Goodspeed
2024-09-23Merge remote branch 'lua-script-args' into lua-script-argsNat Goodspeed
2024-09-23Use Lua command-line args to make frame_profile_quit.lua generic.Nat Goodspeed
Now the location to which to teleport and the camera focus point can both be specified by the caller, in this case the frame_profile bash script.
2024-09-23#2626 fix for incoming IM calls not being rejected when DND mode is activeMaxim Nikolenko
2024-09-22#2618 Roles and Members tab is a messAlexander Gavriliuk
2024-09-21#2618 Roles and Members tab is a mess (fix XML indents for readability)Alexander Gavriliuk
2024-09-21Improve inventory finder floater performance: Don't parse XUI tree each ↵Ansariel Hiller
frame (#2640)
2024-09-20Fix trailing spaces.Nat Goodspeed
2024-09-20Merge branch 'release/luau-scripting' into lua-script-argsNat Goodspeed
2024-09-20Add ability to pass command-line arguments to a Lua script.Nat Goodspeed
Introduce `ScriptCommand` class that parses a command line into a script name and optional args, using bash-like quoting and escaping. `ScriptCommand` searches for a file with that script name on a passed list of directories; the directories may be specified relative to a particular base directory. `ScriptCommand` supports the special case of a script name containing unescaped spaces. It guarantees that either the returned script file exists, or its `error()` string is non-empty. Replace `LLLeap::create()` logic, from which `ScriptCommand` was partly derived, with a `ScriptCommand` instance. Make `LLLUAmanager::runScriptFile()` use a `ScriptCommand` instance to parse the passed command line. Subsume `LLAppViewer::init()` script-path-searching logic for `--luafile` into `ScriptCommand`. In fact that lambda now simply calls `LLLUAmanager::runScriptFile()`. Make `lluau::dostring()` accept an optional vector of script argument strings. Following PUC-Rio Lua convention, pass these arguments into a Lua script as the predefined global `arg`, and also as the script's `...` argument. `LuaState::expr()` also accepts and passes through script argument strings. Change the log tag for the Lua script interruption message: if we want it, we can still enable it, but we don't necessarily want it along with all other "Lua" DEBUG messages. Remove `LuaState::script_finished_fn`, which isn't used any more. Also remove the corresponding `LLLUAmanager::script_finished_fn`. This allows us to simplify `~LuaState()` slightly, as well as the parameter signatures for `LLLUAmanager::runScriptFile()` and `runScriptLine()`.
2024-09-20Merge pull request #2623 from secondlife/v-2462cosmic-linden
secondlife/viewer#2462: Optimize unloading of prims
2024-09-20Restore option to change location of existing pick (#2622)Ansariel Hiller
2024-09-20Fix sky settings with reflection probe ambiance of 0 still receiving tonemappingRye Cogtail
2024-09-20#1519 ObjectGrab message includes invalid SurfaceInfo data when in mouselook ↵Alexander Gavriliuk
mode
2024-09-20viewer#2576 Crash baning a residentAndrey Kleshchev
2024-09-19secondlife/viewer#2623: Remove assertCosmic Linden
2024-09-19secondlife/viewer#2462: Optimize unloading of primsCosmic Linden
2024-09-19Incremented viewer version after release/2024.09-ExtraFPS branch creationBrad Linden
2024-09-19Make login.lua enhance plain grid='agni' to required form.Nat Goodspeed
2024-09-19Merge pull request #2610 from secondlife/frame-profile-jsonnat-goodspeed
Make Develop->Render Tests->Frame Profile dump JSON to a file too.
2024-09-19viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImageAndrey Kleshchev
2024-09-19Don't keep updating snapshot preview when the floater is closedMaxim Nikolenko
2024-09-19Merge branch 'main' into marchcat/b-main-syncAndrey Lihatskiy
# Conflicts: # indra/newview/llviewertexturelist.cpp
2024-09-19Merge branch 'develop' into frame-profile-jsonNat Goodspeed