Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions material_maker/nodes/ios/ios.gd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
class_name MMGraphNodeIOs
extends MMGraphNodeGeneric

func _ready():
Expand Down
4 changes: 4 additions & 0 deletions material_maker/panels/graph_edit/graph_edit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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

Expand Down