Skip to content

Commit

Permalink
Fixes bug #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacopo committed Sep 23, 2017
1 parent 9cc4679 commit 7c39c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions p5.sketchplugin/Contents/Sketch/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ function ellipse(a, b, c, d) {
// It has both a fill and a stroke color
// You can call it like this: arc(250,250,500,100,0,PI)
function arc(a,b,c,d,start,stop) {
doc.currentPage().changeSelectionBySelectingLayers(nil);

if (drawingContext.hasTranslate()) {
a = a+drawingContext.translateX();
b = b+drawingContext.translateY();
Expand Down
2 changes: 1 addition & 1 deletion p5.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description" : "A plugin to run some P5.js code inside Sketch",
"author" : "Jacopo Colò",
"homepage": "https://github.com/jacopocolo/p5-sketchplugin",
"version": "0.9.3",
"version": "0.9.4",
"identifier" : "com.jacopocolo.sketch.p5",
"appcast": "https://raw.githubusercontent.com/jacopocolo/p5-sketchplugin/master/appcast.xml",
"commands" : [
Expand Down

0 comments on commit 7c39c73

Please sign in to comment.