diff --git a/mapeditor.cpp b/mapeditor.cpp index fcf1f2d0..58c1108f 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -2068,7 +2068,7 @@ namespace mapeditor { hpcshape& sh(ds.sh); if(sh.s != sh.e) { - auto& last = queuepolyat(mmscale(V, geom3::lev_to_factor(ds.zlevel)), sh, ds.color ? ds.color : color, prio); + auto& last = queuepolyat(mmscale(V, DIM == 3 ? 0 : geom3::lev_to_factor(ds.zlevel)), sh, ds.color ? ds.color : color, prio); if(DIM == 3) { last.tinf = &user_triangles_texture; last.offset_texture = ds.texture_offset;