chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3664073
)
commitid.scad.pl: Get %s_sz x and y the right way round
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:08:23 +0000
(16:08 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:08:23 +0000
(16:08 +0000)
commitid.scad.pl
patch
|
blob
|
history
diff --git
a/commitid.scad.pl
b/commitid.scad.pl
index e4da3b52b05b42cb99bcf14965794210fd3be4a1..a2793ea3db8712ba10eb9fe933f5e78a2076298c 100755
(executable)
--- a/
commitid.scad.pl
+++ b/
commitid.scad.pl
@@
-110,7
+110,7
@@
sub gentextmodule ($@) {
p " translate([0,0,-d]) linear_extrude(height=d*2) ${modb}_2D();\n";
p "}\n";
p sprintf "function %s_sz() = Commitid__scale() * 0.1 * [ %d, %d ];\n",
- $modb, 2 * (
@lines * 6 - 1), 2 * ($cols * 4
- 1);
+ $modb, 2 * (
$cols * 4 - 1), 2 * (@lines * 6
- 1);
}
our @demo;