material-maker/addons/material_maker/widgets/node_editor/parameter_gradient.gd
Rodolphe Suescun bcdac09cd7 More progress on refactoring and more
Basic import plugin works.
Added gradient parameter to custom node.
hsv_adjust now supports alpha channel.
Remove deprecated scenes.
2019-08-09 08:16:24 +02:00

19 lines
305 B
GDScript

tool
extends HBoxContainer
onready var default = $Default
func _ready():
pass
func get_model_data():
var data = {}
data.default = default.value.serialize()
return data
func set_model_data(data):
if data.has("default"):
var v = MMGradient.new()
v.deserialize(data.default)
default.value = v