mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
12 lines
286 B
GDScript
12 lines
286 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
|