godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Fix `_notification()` with parent and child classes

Open dsnopek opened this issue 1 year ago • 0 comments

Currently, if you have a parent and child class both defined in GDExtension, and the child class has it's own _notification() method, the parent _notification() won't be called. But, also, godot-cpp is not respecting the p_reversed flag, and will always run reversed, calling the child before the parent.

This PR fixes that!

It also adds an automated test to ensure that it is working correctly, and so we won't break this again.

dsnopek avatar Feb 02 '24 16:02 dsnopek