From 9f82c85b73c7b0e65f60b94199c98384c491db1e Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 12 Feb 2024 00:29:30 +0200 Subject: [PATCH] Fix issue when uploading a shader on the Web version --- src/Autoload/HTML5FileExchange.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Autoload/HTML5FileExchange.gd b/src/Autoload/HTML5FileExchange.gd index 7c45df2d3..741131300 100644 --- a/src/Autoload/HTML5FileExchange.gd +++ b/src/Autoload/HTML5FileExchange.gd @@ -171,4 +171,5 @@ func load_shader() -> void: shader.code = file_data var shader_effect_dialog = Global.control.get_node("Dialogs/ImageEffects/ShaderEffect") - shader_effect_dialog.change_shader(shader, file_name.get_basename()) + if is_instance_valid(shader_effect_dialog): + shader_effect_dialog.change_shader(shader, file_name.get_basename())