The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Create a new path straight line tools when paths are deselected

These changes was commited to the Birdfont repository Sat, 09 Dec 2017 20:39:04 +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>
Sat, 09 Dec 2017 20:39:04 +0000 (21:39 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 09 Dec 2017 20:39:04 +0000 (21:39 +0100)
commit 7c2d26ea999e7d429c1c2ef103ff4e53b42f9c76
tree 51e2e02c09d70bd7bf57d19f2262ae1310c55650
parent 2dad83ac2b4fa46516a71b274a5277b694272d20
Create a new path straight line tools when paths are deselected

libbirdfont/PenTool.vala
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -1042,6 +1042,7 @@ } if (button == 3 && !KeyBindings.has_shift () ) { + glyph.clear_active_paths (); selected_path = active_path; move_point_event (x, y); @@ -1451,7 +1452,8 @@ glyph.clear_active_paths (); glyph.add_active_path (null, path); - + path.close (); + if (direction_changed) { path.reverse (); update_selection ();