Skip to content

fix(weather-picker): lock weathers enforcement#2146

Merged
davo0411 merged 1 commit into
community-shaders:devfrom
SkrubbySkrubInAShrub:lock-weathers-switching
Apr 17, 2026
Merged

fix(weather-picker): lock weathers enforcement#2146
davo0411 merged 1 commit into
community-shaders:devfrom
SkrubbySkrubInAShrub:lock-weathers-switching

Conversation

@SkrubbySkrubInAShrub
Copy link
Copy Markdown
Collaborator

@SkrubbySkrubInAShrub SkrubbySkrubInAShrub commented Apr 17, 2026

This PR allows the user to swap to a different weather using the weather picker, while a lock is active.
Previously the lock would prevent this. The lock is there purely to prevent the game from transitioning to a different weather.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed weather selection behavior when the weather lock feature is active. The editor now properly updates the locked weather to match the newly selected option, preventing it from reverting to the previous locked weather.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0cf53e9c-528e-4891-9e3b-a07e94860343

📥 Commits

Reviewing files that changed from the base of the PR and between a847bd9 and e5dae03.

📒 Files selected for processing (1)
  • src/Features/WeatherEditor.cpp

📝 Walkthrough

Walkthrough

The PR updates the weather selection logic in the editor to synchronize the locked weather reference when a new weather is chosen while the lock is active. When a user selects weather via the combo box, the editorWindow->lockedWeather is immediately updated to match the newly selected weather after calling ForceWeather/SetWeather.

Changes

Cohort / File(s) Summary
Weather Lock Synchronization
src/Features/WeatherEditor.cpp
Added logic to update editorWindow->lockedWeather when a new weather is selected and the lock is active, ensuring the lock enforces the newly chosen weather in subsequent Prepass() calls.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • davo0411

Poem

🐰 A weather lock, now fixed with care,
When you select, the lock stays fair,
No reverting to the past,
Your chosen climate holds fast! 🌦️

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(weather-picker): lock weathers enforcement' directly relates to the main change: fixing weather lock enforcement in the weather picker to allow user-initiated weather changes while respecting the lock mechanism.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

No actionable suggestions for changed features.

@davo0411 davo0411 merged commit d298ab4 into community-shaders:dev Apr 17, 2026
17 checks passed
@github-actions
Copy link
Copy Markdown

✅ A pre-release build is available for this PR:
Download

YtzyFvra pushed a commit to YtzyFvra/skyrim-community-shaders that referenced this pull request Apr 19, 2026
Co-authored-by: SkrubbySkrubInAShrub <skrubbyskrubinashrub@gmail.com>
ParticleTroned pushed a commit to ParticleTroned/skyrim-community-shaders that referenced this pull request May 2, 2026
Co-authored-by: SkrubbySkrubInAShrub <skrubbyskrubinashrub@gmail.com>
(cherry picked from commit d298ab4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants