- UDMF vertex heights are now preserved in a more sensible way when joining vertices. Fixes #299.

This commit is contained in:
biwa 2019-09-20 23:14:53 +02:00
parent c6b879bb1a
commit 67a6818632

View file

@ -306,6 +306,10 @@ namespace CodeImp.DoomBuilder.Map
// Which means this vertex is removed and the other is kept!
public void Join(Vertex other)
{
// biwa. Preserve z coords in a smart way
if (float.IsNaN(other.ZCeiling)) other.ZCeiling = zceiling;
if (float.IsNaN(other.ZFloor)) other.ZFloor = zfloor;
// If either of the two vertices was selected, keep the other selected
if(this.Selected) other.Selected = true;
if(this.marked) other.marked = true;