mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-27 23:17:14 +01:00
19 lines
305 B
GDScript3
19 lines
305 B
GDScript3
|
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
|