finally fix deserialization of the new format

This commit is contained in:
minenice55
2022-08-21 21:57:32 -04:00
parent cc577966c1
commit fe0b97d1ab
6 changed files with 47 additions and 39 deletions

View File

@ -118,7 +118,7 @@ namespace HeavenStudio.Editor
{
prefab = DropdownP;
}
else if (objType == typeof(Color) || objType == typeof(EntityTypes.SerializableColor))
else if (objType == typeof(Color))
{
prefab = ColorP;
}

View File

@ -120,10 +120,10 @@ namespace HeavenStudio.Editor
);
break;
case EntityTypes.SerializableColor _:
// case EntityTypes.SerializableColor _:
case Color _:
colorPreview.colorPicker.onColorChanged += _ =>
parameterManager.entity[propertyName] = new EntityTypes.SerializableColor { Color = colorPreview.colorPicker.color };
parameterManager.entity[propertyName] = colorPreview.colorPicker.color;
Color paramCol = parameterManager.entity[propertyName];