Isn't this valid only if Mode==root? As I understand it, scene is actually the ScenePtr to the root (as defined by the root parameter), rather than the local location where the transform will actually be read from. There are many of those local locations right? So we'd need to visit them all to be sure they were all static? Can we do the setTimeDep() call at the end of the cook based on the information we discover during it? Or must it be done upfront?

After checking out the base class, my understanding is that getPath() returns the root path (despite the name). Also I assume that scene->scene( rootPath ) is just returning scene again (because rootPath is empty) which adds to my confusion. If my understanding is right then how about renaming the scene variable to rootScene and removing the scene->scene( rootPath ) stuff?