Page MenuHome

logic.addScene() Not Adding Scenes in Order patch
Closed, ResolvedPublicPATCH

Description

The structures containing the scenes to be added for that frame were implemented as sets, which meant they were ordered based on the string name of the scene. This meant that multiple calls to this function would not add the scenes in the order they were added using logic.addScene(). I have implemented these structures as queues, which gives the desired behavior.

Original bug [#32218]: http://projects.blender.org/tracker/index.php?func=detail&aid=32218&group_id=9&atid=306

Event Timeline

sorry, patched against r49742

Any reason to use a queue instead of a vector? Seeing as vector is already included, I'd be tempted to use that.

No, I'll rewrite it with a vector!

A modified version of this patch has been committed as r57536.

Mitchell Stokes (moguri) changed the task status from Unknown Status to Resolved.Jun 18 2013, 6:16 AM