From 71c458e7e895d2f434cd2cb2401da882558b923a Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 8 Jan 2014 15:23:09 +0100 Subject: Only shrink-wrap sprite costumes thanks, Kartik, for this fix! --- history.txt | 1 + objects.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index 37d1d6b..168b255 100755 --- a/history.txt +++ b/history.txt @@ -2050,3 +2050,4 @@ ______ * Threads, Blocks, Objects: The FOR reporter’s first input now also accepts blocks and scripts („rings“), and reports a copy that is bound to the sprite indicated by the second input. This lets you „zombify“ (or remote-control) sprites (and create custom TELL and ASK blocks) * Blocks: initial support for „sensing“ sprite-only custom block definitions, commented out for now * Paint: Add mouseLeaveDragging() event behavior, thanks, Kartik, for this fix! +* Objects: Only shrink-wrap sprite costumes, thanks, Kartik, for this fix! diff --git a/objects.js b/objects.js index 67eb143..e8a934e 100644 --- a/objects.js +++ b/objects.js @@ -5263,7 +5263,10 @@ Costume.prototype.edit = function (aWorld, anIDE, isnew, oncancel, onsubmit) { function (img, rc) { myself.contents = img; myself.rotationCenter = rc; - myself.shrinkWrap(); + if (anIDE.currentSprite instanceof SpriteMorph) { + // don't shrinkwrap stage costumes + myself.shrinkWrap(); + } myself.version = Date.now(); aWorld.changed(); if (anIDE) { -- cgit v1.3.1