The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Update path boundaries

These changes was commited to the Birdfont repository Fri, 09 Oct 2015 09:33:34 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 09 Oct 2015 09:33:34 +0000 (11:33 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 09 Oct 2015 09:33:34 +0000 (11:33 +0200)
commit 1881cf80d48b5e43371c217efa129ee37b02d21f
tree 74258d2508076c7a82b122002a0a83c943e02c5c
parent ec82ded008ea6dc1080f537fca3c02af7406513d
Update path boundaries

libbirdfont/PenTool.vala
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -1,3 +1,4 @@ + /* Copyright (C) 2012 2013 2014 2015 Johan Mattsson @@ -201,6 +202,7 @@ } } + update_boundaries_for_selected_paths (); on_axis = false; }); @@ -417,6 +419,19 @@ distortion_first = df; distortion_next = dn; + } + + public static void update_boundaries_for_selected_paths () { + Gee.ArrayList<Path> paths = new Gee.ArrayList<Path> (); + foreach (PointSelection p in selected_points) { + if (paths.index_of (p.path) == -1) { + paths.add (p.path); + } + } + + foreach (Path p in paths) { + p.update_region_boundaries (); + } } public static void delete_simplify () {