Release/v6.2 #35

Merged
ChaoticByte merged 9 commits from release/v6.2 into main 2025-01-10 19:58:28 +00:00
Showing only changes of commit 7b72274140 - Show all commits

View file

@ -61,11 +61,12 @@ func save_result(path: String):
func load_shader(path: String):
print("Load ", path)
var file = FileAccess.open(path, FileAccess.READ)
self.shader_code = file.get_as_text()
if "/" in path: # update current working directory
self.cwd = path.substr(0, path.rfind("/"))
self.last_shader_savepath = path
store_last_opened_file()
if file != null:
self.shader_code = file.get_as_text()
if "/" in path: # update current working directory
self.cwd = path.substr(0, path.rfind("/"))
self.last_shader_savepath = path
store_last_opened_file()
func save_shader(path: String):
print("Save ", path)