Don't show hidden elements in the project thumbnail

pull/3/merge
jmoenig 2014-12-01 11:25:28 +01:00
rodzic 320bfd0c99
commit 1f5934c81f
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2362,3 +2362,7 @@ ______
1411225
-------
* Threads: Fixed #656
141201
------
* Objects: Hide hidden elements in the project thumbnail

Wyświetl plik

@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.objects = '2014-November-24';
modules.objects = '2014-December-01';
var SpriteMorph;
var StageMorph;
@ -5333,7 +5333,7 @@ StageMorph.prototype.thumbnail = function (extentPoint, excludedSprite) {
this.dimensions.y * this.scale
);
this.children.forEach(function (morph) {
if (morph !== excludedSprite) {
if (morph.isVisible && (morph !== excludedSprite)) {
fb = morph.fullBounds();
fimg = morph.fullImage();
if (fimg.width && fimg.height) {