Skip to content

Commit

Permalink
fix(SVGInput): fix bug when loading a .svg with a z-ending last path
Browse files Browse the repository at this point in the history
  • Loading branch information
panquez committed Jan 9, 2020
1 parent 48f6a91 commit f7ccc8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/geode/model/svg_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ namespace

void create_line( const std::vector< geode::Point2D >& vertices )
{
if( vertices.size() < 2 )
{
return;
}
const auto& line_id = builder_.add_line();
const auto line_builder = builder_.line_mesh_builder( line_id );
line_builder->create_point( vertices.front() );
Expand Down

0 comments on commit f7ccc8f

Please sign in to comment.