Skip to content

Commit

Permalink
set 2nd node types to LINE for clean paths via Georg #3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgamage committed Sep 20, 2016
1 parent 7f6b43b commit 28d0f39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Extrude Tool/Extrude_Tool.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,13 @@ - (void)mouseDragged:(NSEvent *)theEvent {
[path insertNode:lastHolder atIndex:lastIndex];
[path insertNode:firstHolder atIndex:firstIndex];

[[path nodeAtIndex:lastIndex] setConnection:SHARP];
[[path nodeAtIndex:lastIndex + 1] setConnection:SHARP];
[[path nodeAtIndex:firstIndex] setConnection:SHARP];
[[path nodeAtIndex:firstIndex + 1] setConnection:SHARP];
[[path nodeAtIndex:firstIndex + 1] setType:LINE];

[[path nodeAtIndex:lastIndex] setConnection:SHARP];
[[path nodeAtIndex:lastIndex + 1] setConnection:SHARP];
[[path nodeAtIndex:lastIndex + 1] setType:LINE];
}

// Use mouse position on x axis to translate the points
Expand Down

0 comments on commit 28d0f39

Please sign in to comment.