Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Swap Y/Z axes in position property
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjp600 committed Jul 13, 2020
1 parent 6f92fba commit 2feb54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CBRE.DataStructures/MapObjects/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 2feb54c

Please sign in to comment.