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]