summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-01-08 15:23:09 +0100
committerjmoenig <jens@moenig.org>2014-01-08 15:23:09 +0100
commit71c458e7e895d2f434cd2cb2401da882558b923a (patch)
tree4a6aa0f6f370d6518e517b58b575c0b8cee3deaf /objects.js
parentb9f8ef9951f2a534556925ad7a2776281f7e18c5 (diff)
downloadsnap-71c458e7e895d2f434cd2cb2401da882558b923a.tar.gz
snap-71c458e7e895d2f434cd2cb2401da882558b923a.zip
Only shrink-wrap sprite costumes
thanks, Kartik, for this fix!
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js5
1 files changed, 4 insertions, 1 deletions
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) {