material-maker/addons/material_maker/nodes/base.gd
2019-10-27 14:36:16 +01:00

15 lines
299 B
GDScript

tool
extends GraphNode
class_name MMGraphNodeBase
var generator : MMGenBase = null setget set_generator
func _ready() -> void:
connect("offset_changed", self, "_on_offset_changed")
func set_generator(g) -> void:
generator = g
func _on_offset_changed() -> void:
generator.set_position(offset)