injectTimePulse exists both for the system and the context

Issue #937 new
Pavlos Touboulidis created an issue

Given the following: this->ce = CEGUI::System::getSingletonPtr(); this->ctx = &this->ce->getDefaultGUIContext();

one has to inject a time pulse on both of them, like this:

this->ce->injectTimePulse(timeSinceLastFrame);
this->ctx->injectTimePulse(timeSinceLastFrame);

or else the animations do not run! You'd think injecting to the context should be enough.

Reproducibility: N/A

Comments (1)

  1. Paul Turner

    Yeah, this is an unresolved left-over from the switch to contexts.

    Basically the issue is that the animation system (fed via the System::injectTimePulse) is system global and not context specific. So at the moment you have this mess of injecting the pulse into multiple places.

    I'm happy to entertain suggestions.

  2. Log in to comment