Only shrink-wrap sprite costumes

thanks, Kartik, for this fix!
pull/3/merge
jmoenig 2014-01-08 15:23:09 +01:00
rodzic b9f8ef9951
commit 71c458e7e8
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -2050,3 +2050,4 @@ ______
* Threads, Blocks, Objects: The FOR reporters 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!

Wyświetl plik

@ -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) {