tweaked contributed code and updated history

dev
Jens Mönig 2015-12-15 10:34:27 +01:00
rodzic e052d21126
commit 9ab71592aa
3 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -2797,3 +2797,6 @@ v4.0.4 draft features:
end - bulk of 151215
++++++++++++++++++++++++++
151215 - contributions
------
* Objects, Paint: Automatic Sprite Center Detection, Thanks, Craxic!!

Wyświetl plik

@ -6497,7 +6497,7 @@ Costume.prototype.canvasBoundingBox = function (pic) {
Costume.prototype.boundingBox = function () {
return this.canvasBoundingBox(this.contents);
}
};
// Costume duplication

Wyświetl plik

@ -59,6 +59,7 @@
Sep 29 - tweaks (Jens)
Sep 28 [of the following year :)] - Try to prevent antialiasing (Kartik)
Oct 02 - revert disable smoothing (Jens)
Dec 15 - center rotation point on costume creating (Craxic)
*/
/*global Point, Rectangle, DialogBoxMorph, fontHeight, AlignmentMorph,
@ -71,7 +72,7 @@
// Global stuff ////////////////////////////////////////////////////////
modules.paint = '2015-October-02';
modules.paint = '2015-December-15';
// Declarations
@ -607,7 +608,7 @@ PaintCanvasMorph.prototype.updateAutomaticCenter = function () {
if (this.automaticCrosshairs) {
// Calculate this.rotationCenter from this.paper
var rotationCenter = this.calculateCanvasCenter(this.paper);
if (rotationCenter != null) {
if (rotationCenter !== null) {
this.rotationCenter = rotationCenter;
}
}