client/js/renderer/shapebuilder.js
changeset 467 fd2b5a7ec356
parent 458 423bdf56d103
--- a/client/js/renderer/shapebuilder.js	Wed Jun 10 12:46:28 2015 +0200
+++ b/client/js/renderer/shapebuilder.js	Wed Jun 10 14:27:12 2015 +0200
@@ -76,7 +76,10 @@
                 return new paper.Path.RegularPolygon([0,0], 3, 1);
             },
             getImageShape: function(center, radius) {
-                return new paper.Path.RegularPolygon(center, 3, radius);
+                var shape = new paper.Path.RegularPolygon([0,0], 3, 1);
+                shape.scale(radius);
+                shape.translate(center);
+                return shape;
             }
         },
         "svg": function(path){