This also prevents the viewer from calling gSavedSettings on every single llOwnerSay() message, when Bridge is enabled and message is not a proper <tag> at all
* Before creating a new bridge, detach the previous one first and purge all
objects in bridge folder that have the same name as the bridge or the wrong
object might be attached later
* Allow detaching of bridge object even if attachment spot is locked by RLVa
1) When creating/recreating Bridge do not call some functions twice - removed calls in state_entry(),
2) Because of that makeSane() and initBridge() are no longer necessary - code has been moved into proper places in script's code,
3) Initialize bridge functionality ONLY when worn as an actual attachment; Ground on_rez() sets the prim to temp anyway.
There is "std::string isMono" in fslslbridge.cpp set during script creation, but Techwolf had Bridge running in LSL2 mode recently, which was the cause of stack-heap collision.
* Re-attach a detached bridge after 5 seconds to give the asset server time to store the bridge object properties and contents
or they might be magically lost if it gets re-attached immediately
Movelock, Flight Assist: They're defaulting to false / 0.0 script-side, in on_rez() event, anyway - so sending commands to disable them, when they're already turned off, is redundant
Message like that can be handy on laggy regions - user will know when the locking actually has started / stopped
Not bumping Bridge version for this one, it's a minor addition - besides, next release will force recreation of old Bridge script anyway; Nightly users can recreate manually if they wish
- Changed Bridge transparent texture UUID used on its creation (size: 256x128 pixels) to the default Lab's transparent one (size: 32x32 pixels); Works the same, takes a bit less of memory.
- llSetTexture() and llSetPos() have 0.2 sleep time, LlSetLinkPrimitiveParamsFast() has no delay like that (see commit 220bc95019e6). This means fresh Bridge will be ready for work a little faster.
- Added recreation-reset for few more Bridge prim parameters
- getZOffsets: Change pre-pending to a regular appending
* Don't flip UseLSLBridge setting when in OpenSim
* Check for bridge existence before using it
* Cut off the bridge creation process on OpenSim
* Some other refactoring