fix(weather-editor): corrected slider behaviour for the lighting template widget#2136
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughUI slider ranges were made explicit in lighting-related widgets: directional angles, fades, fog, clip/light distances, and DALC Fresnel power now use defined min/max bounds; no control flow or public APIs were changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
No actionable suggestions for changed features. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/WeatherEditor/Weather/LightingTemplateWidget.cpp`:
- Around line 134-139: The Fog Near/Far slider ranges in
LightingTemplateWidget.cpp currently use 0–16384 for both (via
WeatherUtils::DrawSliderFloat on settings.fogNear/settings.fogFar) which
diverges from CellLightingWidget.cpp and risks clamping existing templates; make
the ranges consistent across widgets: either change these calls to use Fog Near
0–10000 and Fog Far 0–50000 (matching the historical CellLightingWidget bounds)
or update CellLightingWidget to the new 0–16384 policy—ensure both widgets call
WeatherUtils::DrawSliderFloat with identical min/max values for settings.fogNear
and settings.fogFar so no existing values are unexpectedly clamped.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: fc759d2b-373d-4caa-9bcc-9382d6e65ace
📒 Files selected for processing (1)
src/WeatherEditor/Weather/LightingTemplateWidget.cpp
|
✅ A pre-release build is available for this PR: |
…late widget (community-shaders#2136) (cherry picked from commit f157d81)
added proper bounds to sliders, now should match what xedit allows or what kreate allows. based on feedback from lamin.
Summary by CodeRabbit