mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
17 lines
320 B
GDScript
17 lines
320 B
GDScript
tool
|
|
extends Node
|
|
|
|
var includes
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func create_node(type):
|
|
var node = null
|
|
var node_type = load("res://addons/material_maker/nodes/"+type+".tscn")
|
|
if node_type != null:
|
|
node = node_type.instance()
|
|
else:
|
|
node = preload("res://addons/material_maker/nodes/generic.tscn").instance()
|
|
return node
|