mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
15 lines
343 B
GDScript3
15 lines
343 B
GDScript3
|
tool
|
||
|
extends GraphEdit
|
||
|
|
||
|
func _ready():
|
||
|
pass
|
||
|
|
||
|
func get_source(node, port):
|
||
|
for c in get_connection_list():
|
||
|
if c.to == node && c.to_port == port:
|
||
|
return { node=c.from, slot=c.from_port }
|
||
|
|
||
|
func remove_node(node):
|
||
|
for c in get_connection_list():
|
||
|
if c.from == node or c.to == node:
|
||
|
disconnect_node(c.from, c.from_port, c.to, c.to_port)
|