1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fix issue when uploading a shader on the Web version

This commit is contained in:
Emmanouil Papadeas 2024-02-12 00:29:30 +02:00
parent 0a63664391
commit 9f82c85b73

View file

@ -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())