From 87738d219d1f37da59f4c98f8883a223be7f4b0c Mon Sep 17 00:00:00 2001 From: Richard Christie Date: Mon, 21 Oct 2024 15:06:57 +1300 Subject: [PATCH] Fix annotation around counts check --- src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py b/src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py index e9b26042..0aede4e2 100644 --- a/src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py +++ b/src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py @@ -112,7 +112,7 @@ def checkOptions(cls, options): if options["Number of elements around"] < 8: options["Number of elements around"] = 8 elif options["Number of elements around"] % 4: - options["Number of elements around"] += 4 - options["Number of elements around"] % 4 + options["Number of elements around"] += 4 - (options["Number of elements around"] % 4) annotationAroundCounts = options["Annotation numbers of elements around"] minAroundCount = options["Number of elements around"] @@ -126,7 +126,7 @@ def checkOptions(cls, options): if annotationAroundCounts[i] < 8: annotationAroundCounts[i] = 8 elif annotationAroundCounts[i] % 4: - annotationAroundCounts[i] += 4 - annotationAroundCounts[i] + annotationAroundCounts[i] += 4 - (annotationAroundCounts[i] % 4) if annotationAroundCounts[i] < minAroundCount: minAroundCount = annotationAroundCounts[i]