Skip to content

Commit f4f433e

Browse files
authored
Merge pull request ItsKorin#18 from Loufe/process-loop-simplification
Simplify process loop
2 parents afae22d + f280a81 commit f4f433e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

addons/post_processing/node/post_process.gd

+1-10
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,6 @@ func _add_canvas_layer_children(_path : String, _name: String) -> void:
170170
func _process(delta):
171171
if not configuration:
172172
return
173-
if Engine.is_editor_hint():
174-
if dynamically_update:
175-
update_shaders()
176-
else:
177-
if configuration.reload:
178-
configuration.reload = false
179-
update_shaders()
180-
else:
181-
update_shaders()
182-
if configuration.reload:
173+
if configuration.reload and (dynamically_update or Engine.is_editor_hint()):
183174
configuration.reload = false
184175
update_shaders()

0 commit comments

Comments
 (0)