material-maker/material_maker/widgets/node_editor/parameter_gradient.gd

15 lines
282 B
GDScript

extends HBoxContainer
onready var default = $Default
func get_model_data() -> Dictionary:
return {
default = default.value.serialize(),
}
func set_model_data(data) -> void:
if data.has("default"):
var v = MMGradient.new()
v.deserialize(data.default)
default.value = v