From 2feb54caa3d8753d7b9e17a87a6a50e20dfc52ec Mon Sep 17 00:00:00 2001 From: juanjp600 Date: Mon, 13 Jul 2020 15:06:56 -0300 Subject: [PATCH] Swap Y/Z axes in position property --- CBRE.DataStructures/MapObjects/Entity.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CBRE.DataStructures/MapObjects/Entity.cs b/CBRE.DataStructures/MapObjects/Entity.cs index dfbcc0507..0b32fcbf0 100644 --- a/CBRE.DataStructures/MapObjects/Entity.cs +++ b/CBRE.DataStructures/MapObjects/Entity.cs @@ -15,11 +15,11 @@ public class Entity : MapObject { public EntityData EntityData { get; set; } public Coordinate Origin { get { - return EntityData.GetPropertyCoordinate("position", Coordinate.Zero); + return EntityData.GetPropertyCoordinate("position", Coordinate.Zero).XZY(); } set { - EntityData.SetPropertyValue("position", value.ToDataString()); + EntityData.SetPropertyValue("position", value.XZY().ToDataString()); } }