Skip to content

Commit 1b5dfe1

Browse files
committed
Simplify unclear process loop
1 parent afae22d commit 1b5dfe1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

addons/post_processing/node/post_process.gd

+1-9
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@ func _process(delta):
171171
if not configuration:
172172
return
173173
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:
174+
if configuration.reload and (dynamically_update or Engine.is_editor_hint()):
183175
configuration.reload = false
184176
update_shaders()

0 commit comments

Comments
 (0)