The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Convert last node to corner in Beziér tool

Changes made to libbirdfont/HiddenTools.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/HiddenTools.vala +++ libbirdfont/HiddenTools.vala @@ -47,7 +47,15 @@ bezier_line.is_tool_modifier = true; hidden_expander.add_tool (bezier_line); bezier_line.set_tool_visibility (false); - + + Tool bezier_corner = new Tool ("bezier_corner", t_("Convert the last control point to a corner node")); + bezier_corner.select_action.connect ((self) => { + DrawingTools.bezier_tool.create_corner (); + }); + bezier_corner.is_tool_modifier = true; + hidden_expander.add_tool (bezier_corner); + bezier_corner.set_tool_visibility (false); + expanders.add (hidden_expander); }