mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
- UDMF vertex heights are now preserved in a more sensible way when joining vertices. Fixes #299.
This commit is contained in:
parent
c6b879bb1a
commit
67a6818632
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue