summaryrefslogtreecommitdiff
path: root/indra
AgeCommit message (Collapse)Author
2023-09-27SL-15039 Fixed missed filter time variableAndrey Kleshchev
2023-09-27DRTVWR-589: Use std::placeholders::_1, etc., for std::bind()Nat Goodspeed
2023-09-27DRTVWR-589: Fix compile errors in 354585d.Nat Goodspeed
2023-09-27DRTVWR-589: Add Lua-callable listen_events() function.Nat Goodspeed
Add LuaListener, based on LLLeap. LuaListener has an int key so the second and subsequent calls to listen_events() can find a previously-created one. LuaListener listens on its LLEventPump and arranges to call the specified Lua callback with any incoming event. It also instantiates an LLLeapListener. listen_events() locates the main thread for its state: we only want to call callbacks on the Lua chunk's main thread, not on a (possibly suspended) coroutine. It finds or creates a LuaListener and stashes it in the main thread's registry, along with the passed Lua callback function. Finally it returns the names of the LuaListener's reply pump and the LLLeapListener's command pump. Add LuaState RAII class to manage the lifespan of each lua_State we create. This encapsulates much of the boilerplate common to runScriptFile() and runScriptLine(). In addition, LuaState's destructor checks for a LuaListener key and, if found, destroys the referenced LuaListener. LuaState's constructor requires a description to clarify log messages. Move the checkLua() free function to a member of LuaState. This allows capturing an error message to pass to the C++ completion callback, if any. Use LuaState in runScriptFile() and runScriptLine(), synthesizing a suitable description in each case. Add print_debug() and print_info() logging calls, analogous to print_warning(). Add luaL_where() prefix to every such message. Add lua_pushstdstring(), like lua_tostdstring(): convenience for working with the pointer and length used by lua_pushlstring() and lua_tolstring(). Clean up return values of lua_functions. A lua_CFunction returns the number of return values it has pushed, so any 'void' lua_CFunction should pop its arguments and return 0.
2023-09-27SL-20346 Avoid of ASSERT (pos.isFinite()) in drawBoxOutline()Alexander Gavriliuk
2023-09-27SL-20345 Avoid of ASSERT (\!mRootVolp) in LLControlAvatar::~LLControlAvatar()Alexander Gavriliuk
2023-09-27SL-20346 Avoid of ASSERT (pos.isFinite()) in drawBoxOutline()Alexander Gavriliuk
2023-09-27SL-20345 Avoid of ASSERT (\!mRootVolp) in LLControlAvatar::~LLControlAvatar()Alexander Gavriliuk
2023-09-27SL-15039 Prune unused preferences #5Andrey Kleshchev
2023-09-27SL-15039 Restored couple settings that are still in use by TPVsAndrey Kleshchev
2023-09-27SL-15039 Prune unused preferences #4Andrey Kleshchev
2023-09-26DRTVWR-589: Extend timeouts for timing-sensitive pump & pipe fitness.Nat Goodspeed
2023-09-26SL-20292 Recent emojis panel: reduce spaces between controlsAlexander Gavriliuk
2023-09-26DRTVWR-589: Fix typo due to old documentation.Nat Goodspeed
The function formerly known as luaL_typerror() is now luaL_typeerror().
2023-09-26SL-19242: Store Mac app bundle in tarball with top-level .app name.Nat Goodspeed
We were creating the tarball with the app bundle stored as the whole 'Users/someone/.../newview/Release/Second Life Mumble.app' path. Don't.
2023-09-26SL-20341 Item Properties floater closes on changes for task inventory itemAndrey Kleshchev
2023-09-26SL-19242: Allow overwriting the Mac viewer's app bundle tarball.Nat Goodspeed
2023-09-26DRTVWR-589: Collect int table keys in vector<int>, not set<int>.Nat Goodspeed
Given that we at least have a possibility of determining the length of a Lua table in advance, we might be able to populate a vector of keys with a single initial allocation. Even if Lua reports the length incorrectly, vector::push_back() is one of the bread-and-butter operations of the library, optimized to the extent possible. Inserting elements into a set seems more likely to incur allocations. Of course, we must then sort() the vector to determine its largest key value. Also document the requirement that we use a Lua runtime compiled for C++, that is, compiled to raise errors by C++ exceptions rather than by longjmp(). We rely on temporary stack objects being properly destroyed even if errors are raised. Conventionally, with lua_tomumble(L, index), 'index' refers to the stack index of the Lua object being converted to C++. For a Lua table, talk about table keys rather than table indexes to avoid confusing the maintainer.
2023-09-26SL-19242: Package Mac app image as tarball for artifact uploading.Nat Goodspeed
actions/upload-artifact doesn't preserve symlinks, which are important for our Mac viewer and its embedded frameworks. But tar does, so pack up the whole bundle as a tarball before posting as a GitHub artifact.
2023-09-26SL-20338 FIXED Texture tab Material drop-down does not change if same ↵Maxim Nikolenko
numbered face is selected
2023-09-25DRTVWR-589: Fix Lua table to LLSD array conversion.Nat Goodspeed
The previous implementation assumed that the Lua length function would correctly report the number of entries in a table, and that traversing a table with integer keys would produce them in numeric order. Neither assumption is true. Instead, make a preliminary pass to validate and collect indexes, and to discover the highest integer index. Armed with that, we can construct a contiguous LLSD array of correct size, and populate it with a second pass. Also add Lua-callable post_on_pump(pumpname, datablob) function.
2023-09-25Start removing the concept of placement mode - it's either a mirror or not.Jonathan "Geenz" Goodman
DRTVWR-583
2023-09-25SL-20276 shape thumbnails should display front of avatar regardless of ↵Maxim Nikolenko
'AppearanceCameraMovement' setting
2023-09-25Get the average normal of the face.Jonathan "Geenz" Goodman
DRTVWR-583
2023-09-25SL-20335 Disable ERROR # diffuseColor4fv : ASSERT (shader != NULL)Alexander Gavriliuk
2023-09-25SL-20335 Disable ERROR # diffuseColor4fv : ASSERT (shader != NULL)Alexander Gavriliuk
2023-09-25SL-20334 Unable to use non-square textures from inventoryAndrey Kleshchev
2023-09-25SL-20332 Crash at dragCategoryIntoFolderAndrey Kleshchev
2023-09-25Merge branch 'DRTVWR-559' into DRTVWR-583Jonathan "Geenz" Goodman
2023-09-25SL-20188 Size of friend list affects time to open Preferences floaterAndrey Kleshchev
Don't check every file when it's enough to know if there are any.
2023-09-23DRTVWR-589: Further timing-proof pipe and pump fitness test.Nat Goodspeed
2023-09-22SL-20321 Fix for missing "has_te" check (thanks Henri)RunitaiLinden
2023-09-22DRTVWR-589: Introduce LuaFunction: simplified function registration.Nat Goodspeed
2023-09-22SL-20325 Fix for double sided not working.RunitaiLinden
2023-09-22DRTVWR-589: Make pump&pipe fitness tests less timing sensitive.Nat Goodspeed
2023-09-22SL-18837: Bump the granularity of WorkQueue timing tests.Nat Goodspeed
On a low-powered GitHub Mac runner, the system doesn't wake up as soon as it should, and we get spurious "too late" errors. Try a bigger time increment. (cherry picked from commit 045342ba29aae186e13c711bd4dd84377d4a7e43)
2023-09-22DRTVWR-589: Bump the time deltas for ThreadSafeSchedule.Nat Goodspeed
Use whole seconds rather than tenths of seconds, since apparently the TeamCity agent machine is having trouble waking up within tenths of seconds.
2023-09-22SL-15039 Prune unused preferences #3Andrey Kleshchev
DebugInventoryFilters DebugShowXUINames DebugSlshareLogTag DebugStat**** DefaultBlankNormalTexture DefaultObjectNormalTexture DefaultObjectSpecularTexture DefaultUploadCost DisplayAvatarAgentTarget DisplayChat DisplayDebug DisplayDebugConsole DisplayIM DisplayLinden DisplayRegion DragAndDropToolTipDelay DragAndDropDistanceThreshold DropShadowButton DropShadowFloater DropShadowSlider DropShadowTooltip UIImgWhiteUUID UseEnvironmentFromRegion UseDayCycle WaterPresetName SkyPresetName DayCycleName DestinationGuideHintTimeout SidePanelHintTimeout DisablePrecacheDelayAfterTeleporting
2023-09-22SL-15039 Prune unused preferences #2Andrey Kleshchev
List of removed preferences (usused per statistics): BottomPanelNew BrowserHomePage BlockSomeAvatarAppearanceVisualParams ButtonHPad ButtonHeight ButtonHeightSmall CacheNumberOfRegionsForObjects ChatBarStealsFocus ChatLoadGroupTimeout ChatPersistTime ChatShowTimestamps ContextConeInAlpha ContextConeOutAlpha ContextConeFadeTime ConversationHistoryPageSize ContactsTornOff CurlMaximumNumberOfHandles CurlUseMultipleThreads CustomServer DebugShowPrivateMem
2023-09-22SL-15039 Prune unused preferences #1Andrey Kleshchev
List of removed preferences (usused per statistics): AdvanceOutfitSnapshot AnimationDebug AskedAboutCrashReports AudioLevelDoppler AudioLevelRolloff AudioLevelUnderwaterRolloff AudioLevelWind AutoAcceptNewInventory AutoLoadWebProfiles AvatarBacklight AvatarPickerSortOrder AvatarPosFinalOffset AvatarBakedTextureUploadTimeout AvatarBakedLocalTextureUpdateTimeout AnimatedObjectsIgnoreLimits AnimatedObjectsGlobalScale AvatarBoundingBoxComplexity StartUpChannelUUID NearByChatChannelUUID NotificationChannelUUID AlertChannelUUID AssetStorageLogFrequency AvatarInspectorTooltipDelay AllowBottomTrayButtonReordering AvatarRotateThresholdSlow AvatarRotateThresholdFast
2023-09-22DRTVWR-589: Existing lua_pushmumble() functions usually return void.Nat Goodspeed
2023-09-22DRTVWR-589: lua_objlen() removed, use lua_rawlen() insteadNat Goodspeed
2023-09-22SL-20244 Log crash reason before assertion in check_rigged_group()Alexander Gavriliuk
2023-09-21DRTVWR-589: lua_objlen() only defined in luaconf.hNat Goodspeed
2023-09-22SL-20294 The row of recent emojis displays the recently sent emoji only ↵Alexander Gavriliuk
after clicking the collapsing smiley button
2023-09-22SL-20292 The row of recent emojis should scrollAlexander Gavriliuk
2023-09-21SL-20321 Interpret missing TEs in override messages as indication overrides ↵RunitaiLinden
should be nulled out if present.
2023-09-21DRTVWR-589: Merge branch 'DRTVWR-589-llsd' into DRTVWR-589Nat Goodspeed
It seems TC only builds specific v-p branches, e.g. DRTVWR-589 but not DRTVWR-589-llsd.
2023-09-21DRTVWR-589: Add lua_tollsd() and lua_pushllsd() functions.Nat Goodspeed
2023-09-21DRTVWR-589 - allow adding branch to the menuMnikolenko Productengine