1
0
Fork 0

WalkView: Fixed a bug in the polyline path constraint.

This commit is contained in:
Anders Gidenstam 2011-05-08 21:10:36 +02:00
parent 7a0da8c3af
commit 146530a5d0

View file

@ -254,7 +254,7 @@ var makePolylinePath = func (points, width, round_ends = 0) {
if (size(points) < 2) return nil;
var ret = LinePlane.new(points[0], points[1], width);
if (round_ends) {
ret = UnionConstraint.new(line,
ret = UnionConstraint.new(ret,
CircularXYSurface.new(points[0], width/2));
}
for (var i = 2; i < size(points); i += 1) {