From 1b5dfe1f524a41f71837923a7a24c7afec05279b Mon Sep 17 00:00:00 2001 From: Lou Bernardi Date: Wed, 12 Jun 2024 22:12:56 -0400 Subject: [PATCH 1/2] Simplify unclear process loop --- addons/post_processing/node/post_process.gd | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/addons/post_processing/node/post_process.gd b/addons/post_processing/node/post_process.gd index 085b6a7..71b25b5 100644 --- a/addons/post_processing/node/post_process.gd +++ b/addons/post_processing/node/post_process.gd @@ -171,14 +171,6 @@ func _process(delta): if not configuration: return if Engine.is_editor_hint(): - if dynamically_update: - update_shaders() - else: - if configuration.reload: - configuration.reload = false - update_shaders() - else: - update_shaders() - if configuration.reload: + if configuration.reload and (dynamically_update or Engine.is_editor_hint()): configuration.reload = false update_shaders() From f280a812663df5d2582fa4ec7add63c8d0973a4a Mon Sep 17 00:00:00 2001 From: Lou Bernardi Date: Tue, 16 Jul 2024 18:32:35 -0400 Subject: [PATCH 2/2] removed forgotten line 173 --- addons/post_processing/node/post_process.gd | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/post_processing/node/post_process.gd b/addons/post_processing/node/post_process.gd index 71b25b5..462fe45 100644 --- a/addons/post_processing/node/post_process.gd +++ b/addons/post_processing/node/post_process.gd @@ -170,7 +170,6 @@ func _add_canvas_layer_children(_path : String, _name: String) -> void: func _process(delta): if not configuration: return - if Engine.is_editor_hint(): if configuration.reload and (dynamically_update or Engine.is_editor_hint()): configuration.reload = false update_shaders()