From 385afbdc8bdb878034c8d3eff1a11dd841b9e6ea Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sun, 22 Jun 2025 18:09:57 -0500 Subject: [PATCH] CAM: Add initializer for retract_mode Also explicitly list fields for clarity. --- src/Mod/CAM/PathSimulator/AppGL/MillSimulation.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.h b/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.h index a4ba8830a0..b3bade05ec 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.h +++ b/src/Mod/CAM/PathSimulator/AppGL/MillSimulation.h @@ -107,9 +107,11 @@ protected: std::vector MillPathSegments; std::ostringstream mFpsStream; - MillMotion mZeroPos = {eNop, -1, 0, 0, 100, 0, 0, 0, 0}; - MillMotion mCurMotion = {eNop, -1, 0, 0, 0, 0, 0, 0, 0}; - MillMotion mDestMotion = {eNop, -1, 0, 0, 0, 0, 0, 0, 0}; + // clang-format off + MillMotion mZeroPos = {.cmd=eNop, .tool=-1, .x=0, .y=0, .z=100, .i=0, .j=0, .k=0, .r=0, .retract_mode='\0', .retract_z=0.0}; + MillMotion mCurMotion = {.cmd=eNop, .tool=-1, .x=0, .y=0, .z=0, .i=0, .j=0, .k=0, .r=0, .retract_mode='\0', .retract_z=0.0}; + MillMotion mDestMotion = {.cmd=eNop, .tool=-1, .x=0, .y=0, .z=0, .i=0, .j=0, .k=0, .r=0, .retract_mode='\0', .retract_z=0.0}; + // clang-format on StockObject mStockObject; SolidObject mBaseShape;