mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
15 lines
282 B
GDScript
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
|