fix: Remember the location a shader was loaded from & improve functionality

This commit is contained in:
ChaoticByte 2024-06-10 15:51:02 +02:00
parent 1304ecd198
commit 68185fa9ec
No known key found for this signature in database
3 changed files with 5 additions and 6 deletions

View file

@ -231,7 +231,7 @@ func _on_open_shader_dialog_file_selected(path):
Globals.shader = shader
Globals.target_viewport.update()
update()
last_save_filepath = ""
last_save_filepath = path
func _on_save_shader_dialog_file_selected(path):
var file = FileAccess.open(path, FileAccess.WRITE)