diff --git a/material_maker/main_window.gd b/material_maker/main_window.gd index 406d12a4f3..44d82b32d8 100644 --- a/material_maker/main_window.gd +++ b/material_maker/main_window.gd @@ -1139,6 +1139,7 @@ func frame_nodes() -> void: # Avoid calling resize twice if not mm_globals.get_config("auto_size_comment"): nodes[0].resize_to_selection() + await get_tree().process_frame nodes[0].selected = true graph_edit.undoredo.end_group() diff --git a/material_maker/panels/graph_edit/graph_edit.gd b/material_maker/panels/graph_edit/graph_edit.gd index f47e33fa8c..d0c7b0fb7b 100644 --- a/material_maker/panels/graph_edit/graph_edit.gd +++ b/material_maker/panels/graph_edit/graph_edit.gd @@ -1026,6 +1026,8 @@ func do_paste(data) -> void: c.selected = false if new_nodes != null: for c in new_nodes: + if c is MMGraphComment: + await get_tree().process_frame c.selected = true func paste() -> void: