diff --git a/HISTORY.md b/HISTORY.md index f6949173..e5f5a877 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,12 +6,14 @@ * export pen trails as SVG * access pen trails as SVG_Costume: new "pen vectors" reporter variant of "pen trails" * **Notable Changes:** + * when creating a costume from pen trails (raster or vector) make its rotation center the position of the sprite * **Notable Fixes:** * **Translation Updates:** * German ### 2019-12-05 * threads: set the rotation point of "pen vectors" costumes to the position of the sprite that creates them +* objects: set the rotation point of "pen trails" costumes to the position of the sprite that creates them ### 2019-12-03 * objects, blocks, threads, gui: added "log pen vectors" session setting diff --git a/snap.html b/snap.html index a438629d..f9757596 100755 --- a/snap.html +++ b/snap.html @@ -8,7 +8,7 @@ - + diff --git a/src/objects.js b/src/objects.js index d26d6f63..08b86b27 100644 --- a/src/objects.js +++ b/src/objects.js @@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, BooleanSlotMorph, localize, TableMorph, TableFrameMorph, normalizeCanvas, VectorPaintEditorMorph, HandleMorph, AlignmentMorph, Process, XML_Element, WorldMap, copyCanvas*/ -modules.objects = '2019-December-03'; +modules.objects = '2019-December-05'; var SpriteMorph; var StageMorph; @@ -5299,6 +5299,9 @@ SpriteMorph.prototype.reportPenTrailsAsCostume = function () { this.newCostumeName(localize('Costume')) ); cst.shrinkWrap(); + cst.rotationCenter = cst.rotationCenter.translateBy( + new Point(this.xPosition(), -this.yPosition()) + ); return cst; };