Skip to content

Commit 7b69fa2

Browse files
committed
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
2 parents 90cfd88 + 005ceee commit 7b69fa2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/editor_node.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,11 @@ void EditorNode::_update_from_settings() {
510510
Viewport::MSAA msaa = Viewport::MSAA(int(GLOBAL_GET("rendering/anti_aliasing/quality/msaa_2d")));
511511
scene_root->set_msaa_2d(msaa);
512512

513+
// 2D doesn't use a dedicated SubViewport like 3D does, so we apply it on the root viewport instead.
514+
bool use_debanding = GLOBAL_GET("rendering/anti_aliasing/quality/use_debanding");
515+
scene_root->set_use_debanding(use_debanding);
516+
get_viewport()->set_use_debanding(use_debanding);
517+
513518
bool use_hdr_2d = GLOBAL_GET("rendering/viewport/hdr_2d");
514519
scene_root->set_use_hdr_2d(use_hdr_2d);
515520
get_viewport()->set_use_hdr_2d(use_hdr_2d);

0 commit comments

Comments
 (0)