1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-18 03:04:48 +00:00

draw: 3d models now should appear correctly

This commit is contained in:
Zeno Rogue 2019-05-15 17:43:09 +02:00
parent bfb0b3f070
commit d796635dfa

View File

@ -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;