From: Ian Jackson Date: Fri, 5 Feb 2016 18:25:37 +0000 (+0000) Subject: commitid.scad.pl: do skipping of skipped things in 2d demo by incrementing j, not... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=70421db73f49f13634305c6523cbee36d30eed6e commitid.scad.pl: do skipping of skipped things in 2d demo by incrementing j, not by explicitly computing it --- diff --git a/commitid.scad.pl b/commitid.scad.pl index ae1ebb4..5a61f41 100755 --- a/commitid.scad.pl +++ b/commitid.scad.pl @@ -275,6 +275,8 @@ sub gentextmodule_plusq ($$) { gentextmodule($form, $s); if (!($l & 1) && $l>=4) { gentextmodule("${form}S", substr($s,0,$l/2), substr($s,$l/2)); + } else { + $gtm_demo_j++; } } @@ -332,18 +334,14 @@ sub do_git () { } foreach my $sz (3..10) { - gentextmodule_demo_start_batch($sz-3, 0); + gentextmodule_demo_start_batch($sz-3); gentextmodule_plusq("Small$sz", rjustt($sz, $git_count.$git_dirty)) if defined $git_count; - gentextmodule_demo_start_batch($sz-3, 2); - gentextmodule_plusq("Git$sz", ljustt($sz, $git_object, $git_dirty)) if defined $git_object; - gentextmodule_demo_start_batch($sz-3, 4); - gentextmodule("Full$sz", rjustt($sz, $git_count.$git_dirty), ljustt($sz, $git_object, ''))