Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions material_maker/main_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1059,10 +1059,16 @@ func frame_nodes() -> void:

func make_selected_nodes_editable() -> void:
var selected_nodes = get_selected_nodes()
var has_subgraph : bool = false
if !selected_nodes.is_empty():
for n in selected_nodes:
if n.generator is MMGenGraph:
has_subgraph = true
if n.generator.toggle_editable() and n.has_method("update_node"):
n.update_node()
var graph : MMGraphEdit = get_current_graph_edit()
if has_subgraph and graph != null:
hierarchy.update_from_graph_edit(graph)

func create_menu_add_to_library(menu : MMMenuManager.MenuBase, manager, function) -> void:
menu.clear()
Expand Down