From 6e6f4bb1ebf252a00c50f0bf1c41db52fe997caa Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Sat, 24 Jun 2023 10:17:47 +0200 Subject: [PATCH] Sketcher: improve Z layering in edit mode Especially when using cross section there was cases where sketcher elements ... ... wasn't guaranteed to be visible because hidden by other objects --- src/Mod/Show/mTempoVis.py | 2 +- src/Mod/Sketcher/Gui/EditModeCoinManagerParameters.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Show/mTempoVis.py b/src/Mod/Show/mTempoVis.py index 24ade4251e..28de095b4a 100644 --- a/src/Mod/Show/mTempoVis.py +++ b/src/Mod/Show/mTempoVis.py @@ -455,7 +455,7 @@ class TempoVis(object): if enable: # clip plane shall be disabled so new placement can be applied self.modify(ClipPlane(doc, 0)) - self.modify(ClipPlane(doc, toggle, pla, 0.02)) + self.modify(ClipPlane(doc, toggle, pla, 0.001)) sketch.ViewObject.SectionView = enable if enable is not None else not sketch.ViewObject.SectionView def activateWorkbench(self, wb_name): diff --git a/src/Mod/Sketcher/Gui/EditModeCoinManagerParameters.h b/src/Mod/Sketcher/Gui/EditModeCoinManagerParameters.h index 90ae4386eb..93a14816c7 100644 --- a/src/Mod/Sketcher/Gui/EditModeCoinManagerParameters.h +++ b/src/Mod/Sketcher/Gui/EditModeCoinManagerParameters.h @@ -67,8 +67,8 @@ struct DrawingParameters /** @name Rendering Heights - virtual height introduced in the scenegraph to determine what is * drawn on top of what*/ //@{ - const float zEdit = 0.001f; // Height used by temporal edit curves - const float zCross = 0.001f; // Height used by the Axes + const float zEdit = 0.002f; // Height used by temporal edit curves + const float zCross = 0.002f; // Height used by the Axes const float zInfo = 0.004f; // Height used by the Overlay information layer const float zLowLines = 0.005f; // Height used for bottom rendered lines const float zMidLines = 0.006f; // Height used for in-the-middle rendered lines