postUpdate functions not being called in latest engine version

Hi,

It seems like none of my postUpdate methods in my scripts are calling automatically anymore. If I use a slightly older version of the engine (with the &use_local_engine url argument) the methods still fire off correctly, but in the latest version of the engine they do not.

Wondering if this is correct behaviour and if I need to rename my postUpdate methods to have them fire correctly again?

Thanks,
Alan

Works for me. :slight_smile:

Can you link to a simple reproducible scene that illustrates the problem, please?

Hi Will,

Just been doing some more testing and we do some funky stuff to allow some pseudo-inheritance which doesn’t seem to be properly taking the postUpdate methods anymore. Will look into our implementation

Thanks,
Alan

Hmm. Well, one thing to note is that you should not be setting/unsetting update and postUpdate functions dynamically any more. The engine tracks which script components have an update and postUpdate function and optimizes them into lists - so if you change that dynamically, the engine will get confused. Just a thought…