kopia lustrzana https://github.com/backface/turtlestitch
Don't show hidden elements in the project thumbnail
rodzic
320bfd0c99
commit
1f5934c81f
|
@ -2362,3 +2362,7 @@ ______
|
||||||
1411225
|
1411225
|
||||||
-------
|
-------
|
||||||
* Threads: Fixed #656
|
* Threads: Fixed #656
|
||||||
|
|
||||||
|
141201
|
||||||
|
------
|
||||||
|
* Objects: Hide hidden elements in the project thumbnail
|
||||||
|
|
|
@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2014-November-24';
|
modules.objects = '2014-December-01';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -5333,7 +5333,7 @@ StageMorph.prototype.thumbnail = function (extentPoint, excludedSprite) {
|
||||||
this.dimensions.y * this.scale
|
this.dimensions.y * this.scale
|
||||||
);
|
);
|
||||||
this.children.forEach(function (morph) {
|
this.children.forEach(function (morph) {
|
||||||
if (morph !== excludedSprite) {
|
if (morph.isVisible && (morph !== excludedSprite)) {
|
||||||
fb = morph.fullBounds();
|
fb = morph.fullBounds();
|
||||||
fimg = morph.fullImage();
|
fimg = morph.fullImage();
|
||||||
if (fimg.width && fimg.height) {
|
if (fimg.width && fimg.height) {
|
||||||
|
|
Ładowanie…
Reference in New Issue