diff --git a/web/app/sketcher/parametric.js b/web/app/sketcher/parametric.js index d8e0d9ad..86409b69 100644 --- a/web/app/sketcher/parametric.js +++ b/web/app/sketcher/parametric.js @@ -199,11 +199,17 @@ ParametricManager.prototype.lock = function(objs) { }; ParametricManager.prototype.vertical = function(objs) { - this.add(new Constraints.Vertical(fetch.line(objs))); + const lines = fetch.lines(objs); + for (let line of lines) { + this.add(new Constraints.Vertical(line)); + } }; ParametricManager.prototype.horizontal = function(objs) { - this.add(new Constraints.Horizontal(fetch.line(objs))); + const lines = fetch.lines(objs); + for (let line of lines) { + this.add(new Constraints.Horizontal(line)); + } }; ParametricManager.prototype.parallel = function(objs) {