mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
93c84650cd
This also simplifies some functions. This partially addresses #30.
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
|