1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #108950 from Calinou/editor-2d-apply-debanding-if-enabled

Fix debanding not being used in the 2D editor when enabled in Project Settings
This commit is contained in:
Thaddeus Crews
2025-07-30 09:03:41 -05:00

View File

@@ -510,6 +510,11 @@ void EditorNode::_update_from_settings() {
Viewport::MSAA msaa = Viewport::MSAA(int(GLOBAL_GET("rendering/anti_aliasing/quality/msaa_2d")));
scene_root->set_msaa_2d(msaa);
// 2D doesn't use a dedicated SubViewport like 3D does, so we apply it on the root viewport instead.
bool use_debanding = GLOBAL_GET("rendering/anti_aliasing/quality/use_debanding");
scene_root->set_use_debanding(use_debanding);
get_viewport()->set_use_debanding(use_debanding);
bool use_hdr_2d = GLOBAL_GET("rendering/viewport/hdr_2d");
scene_root->set_use_hdr_2d(use_hdr_2d);
get_viewport()->set_use_hdr_2d(use_hdr_2d);