On a cc.Sprite w/ children, initWithTexture called twice #617

Closed
fleet-studio opened this Issue Nov 5, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@fleet-studio

This unexpected behaviour overrides properties like the opacity, anchorPoint, flipX, flipY using the default values.

For ex, on cc.Sprite:492, I fixed the problem using:

this._opacity = this._opacity || 255;

instead of

this._opacity = 255;

@dingpinglv

This comment has been minimized.

Show comment Hide comment
@dingpinglv

dingpinglv Nov 7, 2012

Contributor

This problem is fixed. Thank you!

Contributor

dingpinglv commented Nov 7, 2012

This problem is fixed. Thank you!

@fleet-studio

This comment has been minimized.

Show comment Hide comment
@fleet-studio

fleet-studio Nov 10, 2012

Thanks, I was working with an older version...

Thanks, I was working with an older version...

@linshun linshun closed this Feb 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment