mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:27:40 +02:00
finally fix deserialization of the new format
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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];
|
||||
|
||||
|
@ -592,10 +592,6 @@ namespace HeavenStudio.Editor.Track
|
||||
{
|
||||
returnVal = ((EntityTypes.Float)ep[i].parameter).val;
|
||||
}
|
||||
else if (propertyType == typeof(Color))
|
||||
{
|
||||
returnVal = new EntityTypes.SerializableColor { Color = (UnityEngine.Color) ep[i].parameter };
|
||||
}
|
||||
else if (propertyType.IsEnum)
|
||||
{
|
||||
returnVal = (int) ep[i].parameter;
|
||||
|
Reference in New Issue
Block a user