godot
godot copied to clipboard
Fix Animated Path2D doesn't update PathFollow2D progress when scene is running.
PathFollow2D needs to update its transform whenever a curve changes (for instance a point change its position).
I have tested with the project provided in https://github.com/godotengine/godot/issues/85813 bugsquad edit: Fixes #85813.
I have noticed useless code in curve.cpp around call to _bake function:
if (baked_cache_dirty) {
_bake();
}
and the _bake functions is like:
void Curve2D::_bake() const {
if (!baked_cache_dirty) {
return;
}
My eyes bleed but I did not touch it for easy merge :)