From b544461dc7d3d9e7764c6f77a8196d5ce9860957 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 4 Aug 2021 18:23:26 +0200 Subject: [PATCH] flat_model_enabler now sets the default variation, fixes issue #254 --- hypgraph.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hypgraph.cpp b/hypgraph.cpp index 6c179606..26a14407 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -2133,6 +2133,7 @@ transmatrix screenpos(ld x, ld y) { EX int flat_on; eGeometry backup_geometry; +eVariation backup_variation; videopar backup_vid; /** \brief enable the 'flat' model for drawing HUD. See hr::flat_model_enabler */ @@ -2142,8 +2143,10 @@ EX void enable_flat_model(int val) { glClear(GL_DEPTH_BUFFER_BIT); #endif backup_geometry = geometry; + backup_variation = variation; backup_vid = vid; geometry = gNormal; + variation = eVariation::bitruncated; pmodel = mdDisk; pconf.alpha = 1; pconf.scale = 1; @@ -2162,6 +2165,7 @@ EX void enable_flat_model(int val) { } if(flat_on >= 1 && flat_on + val < 1) { geometry = backup_geometry; + variation = backup_variation; vid = backup_vid; geom3::apply_always3(); calcparam();