Skip to content

Commit 3dc4676

Browse files
authored
Merge pull request #1369 from williamchange/null-check-set-gen-filepath
Fix error when loading file
2 parents 825820f + 73fe016 commit 3dc4676

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

material_maker/panels/graph_edit/graph_edit.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ func update_tab_title() -> void:
546546
var title = "[unnamed]"
547547
if not save_path.is_empty():
548548
title = save_path.right(-(save_path.rfind("/")+1))
549-
generator.set_meta("file_path", title)
549+
if generator:
550+
generator.set_meta("file_path", title)
550551
if need_save:
551552
title += " *"
552553
if get_parent().has_method("set_tab_title"):

0 commit comments

Comments
 (0)