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