fix issue with worldVisible on Stage
This commit is contained in:
parent
e08559771a
commit
4c62e8fc16
1 changed files with 3 additions and 9 deletions
|
@ -303,15 +303,14 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'interactive', {
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(PIXI.DisplayObject.prototype, 'worldVisible', {
|
Object.defineProperty(PIXI.DisplayObject.prototype, 'worldVisible', {
|
||||||
get: function() {
|
get: function() {
|
||||||
|
|
||||||
var item = this;
|
var item = this;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if(!item.visible)return false;
|
if(!item.visible)return false;
|
||||||
item = item.parent;
|
item = item.parent;
|
||||||
}
|
}
|
||||||
while(item.parent);
|
while(item && item.parent);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -326,11 +325,8 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'worldVisible', {
|
||||||
* @type Graphics
|
* @type Graphics
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
|
Object.defineProperty(PIXI.DisplayObject.prototype, 'mask', {
|
||||||
|
|
||||||
get: function() {
|
get: function() {
|
||||||
|
|
||||||
return this._mask;
|
return this._mask;
|
||||||
|
|
||||||
},
|
},
|
||||||
set: function(value) {
|
set: function(value) {
|
||||||
|
|
||||||
|
@ -368,8 +364,6 @@ Object.defineProperty(PIXI.DisplayObject.prototype, 'filters', {
|
||||||
|
|
||||||
// TODO change this as it is legacy
|
// TODO change this as it is legacy
|
||||||
this._filterBlock = {target:this, filterPasses:passes};
|
this._filterBlock = {target:this, filterPasses:passes};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._filters = value;
|
this._filters = value;
|
||||||
|
@ -453,4 +447,4 @@ PIXI.DisplayObject.prototype._renderCanvas = function(renderSession)
|
||||||
|
|
||||||
PIXI.EmptyRectangle = new PIXI.Rectangle(0,0,0,0);
|
PIXI.EmptyRectangle = new PIXI.Rectangle(0,0,0,0);
|
||||||
|
|
||||||
PIXI.visibleCount = 0;
|
PIXI.visibleCount = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue