CCBReader icon indicating copy to clipboard operation
CCBReader copied to clipboard

Invalid onDidLoadFromCCB call order

Open MartinCote opened this issue 12 years ago • 0 comments

I have a scene with a CCBFile. I've noticed that sometimes, but not every time, the main scene onDidLoadFromCCB function is called before the one from the inner CCBFile, which causes some issues (such that the controller property isn't yet set on the inner CCBFile).

After a bit of investigation, the problem seems to be caused by CCBReader, which stores the animation managers in a dictionary with pointer values as keys.

When the BuilderReader load function goes through the nodesWithAnimationManagers, the order is then undefined.

MartinCote avatar May 24 '13 16:05 MartinCote