diff --git a/Source/Plugins/BuilderModes/VisualModes/BaseVisualVertex.cs b/Source/Plugins/BuilderModes/VisualModes/BaseVisualVertex.cs index 793a150b..dc9f96e1 100644 --- a/Source/Plugins/BuilderModes/VisualModes/BaseVisualVertex.cs +++ b/Source/Plugins/BuilderModes/VisualModes/BaseVisualVertex.cs @@ -60,8 +60,8 @@ namespace CodeImp.DoomBuilder.BuilderModes SetPosition(pos); float radius = DEFAULT_SIZE * General.Settings.GZVertexScale3D; - boxp1 = new Vector3D(pos.x - radius, pos.y - radius, pos.z - radius); - boxp2 = new Vector3D(pos.x + radius, pos.y + radius, pos.z + radius); + boxp1 = new Vector3D(pos.x - radius, pos.y - radius, (ceilingVertex ? pos.z - radius : pos.z)); + boxp2 = new Vector3D(pos.x + radius, pos.y + radius, (ceilingVertex ? pos.z : pos.z + radius)); changed = false; }