From 0953ed995f5e486fc69baf52fd8f2de238ae6cbe Mon Sep 17 00:00:00 2001 From: weasel0x00 Date: Fri, 12 Jun 2026 15:38:52 -0600 Subject: [PATCH] fix: initialize Request::sortMode (was uninitialized) sortMode was never set in the constructor, so a run without -S read indeterminate stack memory and could nondeterministically take the multiple-sort (time-seeded shuffle) path. Default it to REQUEST_SINGLE_SORT so single-sort runs are reproducible. Co-Authored-By: Claude Opus 4.8 --- plater/Request.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plater/Request.cpp b/plater/Request.cpp index 00306b0..2cf38a1 100644 --- a/plater/Request.cpp +++ b/plater/Request.cpp @@ -27,7 +27,8 @@ namespace Plater plateWidth(150000), plateHeight(150000), randomIterations(3), - mode(REQUEST_STL), + mode(REQUEST_STL), + sortMode(REQUEST_SINGLE_SORT), precision(500), delta(1000), deltaR(M_PI/2),