Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/Features/WeatherEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,9 @@ void WeatherEditor::RenderWeatherControls(RE::Sky* sky)
else
sky->SetWeather(selectedWeather, true, false);

// If the lock is active, retarget it to the newly chosen weather so
// Prepass() enforces the new choice instead of reverting it.
if (editorWindow->IsWeatherLocked()) {
editorWindow->lockedWeather = selectedWeather;
}
// Retarget the lock so Prepass() enforces the new choice instead of reverting it.
if (editorWindow->IsWeatherLocked())
editorWindow->LockWeather(selectedWeather);

Util::ClearComboSearch(kWeatherSearchId);
logger::info("[WeatherEditor] Changed weather to: {}", Util::FormatWeather(selectedWeather));
Expand Down
Loading