Fix skipping UICanvas diff serialization for Size property if render mode is ScreenSpace

This commit is contained in:
Wojtek Figat
2021-03-17 11:54:36 +01:00
parent aa1c200bf8
commit 0122bf68bf

View File

@@ -510,7 +510,7 @@ namespace FlaxEngine
jsonWriter.WriteValue(Distance);
}
if (Size != other.Size)
if ((RenderMode != other.RenderMode || RenderMode != CanvasRenderMode.ScreenSpace) && Size != other.Size)
{
jsonWriter.WritePropertyName("Size");
jsonWriter.WriteStartObject();