material-maker/addons/material_maker/engine/gen_graph.gd

14 lines
359 B
GDScript3
Raw Normal View History

2019-08-02 08:17:32 +02:00
tool
extends MMGenBase
class_name MMGenGraph
2019-08-02 08:17:32 +02:00
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
2019-08-13 13:38:11 +02:00
func connect_children(src, src_index : int, dst, dst_index : int):
pass