phoenix-firestorm/indra
William Weaver 04af042435 Fix(EnvAdjust): Ensure cloud texture selection updates the sky
Problem:
When selecting a new cloud texture in the Personal Lighting floater (LLFloaterEnvironmentAdjust) using the cloud map texture picker, the sky rendering did not update to reflect the selected texture. The callback only updated the internal mLiveSky object and its subsequent call to mLiveSky->update() was insufficient to trigger a live render update.

Cause:
The onCloudMapChanged callback modified the mLiveSky settings object directly and called its update() method. However, in the context of live environment adjustments, changes require propagation through the central LLEnvironment singleton to correctly update the active environment layer (ENV_LOCAL) and signal the renderer. Relying solely on the settings object's update() method bypassed this necessary mechanism.

Solution:
This commit refactors onCloudMapChanged to correctly handle the update:
1.  Uses the LLEnvironment singleton to manage the state change:
    - Explicitly targets the local environment layer (ENV_LOCAL) via setSelectedEnvironment().
    - Clones the mLiveSky settings object.
    - Uses LLEnvironment::setEnvironment() to apply the modified clone to the ENV_LOCAL layer.
    - Uses LLEnvironment::updateEnvironment() to trigger the render update.
2.  Synchronizes the UI preview:
    - Calls picker_ctrl->setValue() on the LLTextureCtrl widget after the environment update to ensure the UI preview matches the applied texture.

Result:
Selecting a cloud texture in the Environment Settings floater now correctly updates both the sky rendering and the UI preview widget simultaneously.

Testing:
- Open World -> Environment Editor -> Environment Settings.
- Go to the Clouds tab.
- Click the cloud texture preview to open the texture picker.
- Select a new cloud texture and click OK.
- Verify the sky updates immediately to use the selected texture.
- Verify the texture preview in the floater also updates immediately.
- Repeat with several different textures to confirm consistent behavior.
2025-04-02 02:13:01 +03:00
..
cmake #2590 Fix for horrible FPS on Intel Mac (#2591) 2024-09-17 18:14:22 -05:00
copy_win_scripts
doxygen
integration_tests
lib/python/indra Convenience deployment tooling for cross-developing on "Classic Mode" machines 2024-11-22 15:30:05 -08:00
linux_crash_logger
llappearance #3305 Don't crash on invalid texture index in getTEWearableType (#3306) 2024-12-18 14:00:11 -06:00
llaudio
llcharacter #2696 Viewer crashes on gestures : fix the bug (#3152) 2024-11-26 11:04:28 -08:00
llcommon Merge pull request #3634 from secondlife/release/2024.12-ForeverFPS 2025-03-01 16:37:59 -05:00
llcorehttp
llcrashlogger
llfilesystem
llimage viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImage 2024-09-19 20:56:10 +03:00
llimagej2coj
llinventory prevent erroneous edit of wrong parcel (#3759) 2025-03-21 07:18:13 -07:00
llkdu
llmath Fix potential undefined behavior when converting to and from glm types from LLVector3/4 and fall back mul_mat4_vec3 to scalar implementation to attempt crash mitigation (#3339) 2025-01-23 18:40:19 -05:00
llmeshoptimizer
llmessage Issue #2907: Process metadata sent along with chats of type IM_NOTHING_SPECIAL, The metadata can contain information about the bot status of the sender. It may also contain a system-injected notification that is displayed to the agent as part of the 1:1 chat window. 2025-02-26 16:23:21 -08:00
llplugin Fix for crash in LLPluginProcessParent during early shutdown. 2024-09-16 13:14:14 -07:00
llprimitive Issue #2687: Honor flag sent by server indicating server side autopilot is engaged. When flag is set allow sever to update local avatar rotation. 2025-02-26 15:47:53 -08:00
llrender #3332 Remake glyph count into cache generation 2025-02-24 19:31:16 +02:00
llui Merge pull request #3634 from secondlife/release/2024.12-ForeverFPS 2025-03-01 16:37:59 -05:00
llwebrtc
llwindow Fix xcode16 build errors 2025-02-13 17:30:08 +02:00
llxml viewer#2972 Fix viewer stripping quotes off folder names 2024-10-30 18:34:04 +02:00
media_plugins
newview Fix(EnvAdjust): Ensure cloud texture selection updates the sky 2025-04-02 02:13:01 +03:00
test
tools/vstool
viewer_components Fix xcode16 build errors 2025-02-13 17:30:08 +02:00
win_crash_logger
CMakeLists.txt Follow-up fixes from develop 2025-02-13 18:00:55 +02:00
edit-me-to-trigger-new-build.txt