The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Fri, 09 Oct 2015 09:33:34 +0000]

Updated Files

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 () {