material-maker/addons/material_maker/engine/gen_graph.gd
2019-08-13 13:38:11 +02:00

14 lines
359 B
GDScript

tool
extends MMGenBase
class_name MMGenGraph
var connections = null
func get_port_source(gen_name: String, input_index: int) -> OutputPort:
for c in connections:
if c.to == gen_name and c.to_port == input_index:
return OutputPort.new(get_node(c.from), c.from_port)
return null
func connect_children(src, src_index : int, dst, dst_index : int):
pass