diff --git a/material_maker/nodes/ios/ios.gd b/material_maker/nodes/ios/ios.gd index bea26d67e..cf985efb2 100644 --- a/material_maker/nodes/ios/ios.gd +++ b/material_maker/nodes/ios/ios.gd @@ -1,3 +1,4 @@ +class_name MMGraphNodeIOs extends MMGraphNodeGeneric func _ready(): diff --git a/material_maker/panels/graph_edit/graph_edit.gd b/material_maker/panels/graph_edit/graph_edit.gd index ee4079441..dc30da080 100644 --- a/material_maker/panels/graph_edit/graph_edit.gd +++ b/material_maker/panels/graph_edit/graph_edit.gd @@ -917,6 +917,8 @@ func serialize_selection(nodes = [], with_inputs : bool = false) -> Dictionary: if nodes.is_empty(): for c in get_children(): if c is GraphElement and c.selected and c.name != "Material" and c.name != "Brush": + if generator != top_generator and c is MMGraphNodeIOs: + continue nodes.append(c) if nodes.is_empty(): return {} @@ -942,6 +944,8 @@ func serialize_selection(nodes = [], with_inputs : bool = false) -> Dictionary: func can_copy() -> bool: for c in get_children(): if c is GraphElement and c.selected and c.name != "Material" and c.name != "Brush": + if generator != top_generator and c is MMGraphNodeIOs: + return false return true return false