three-ui icon indicating copy to clipboard operation
three-ui copied to clipboard

the get for '_proxied_visible' not suport parent'parent

Open xiao8xiao1 opened this issue 7 years ago • 0 comments

the code should be like this:

Object.defineProperty(DisplayObject.prototype, '_proxied_visible', { // Set on proxied, as we're already observing get: function() {

    for (var p = this.parent; typeof p !== 'undefined'; p = p.parent){
        if (!p.visible)
            return false;
    }

	return this._visible;

},

xiao8xiao1 avatar Jul 28 '18 09:07 xiao8xiao1