Fix TickInterpolator error when above interpolated property in scene tree#438
Fix TickInterpolator error when above interpolated property in scene tree#438elementbound merged 4 commits intofoxssake:mainfrom kumpmati:fix/interpolator-init
Conversation
Change `_enter_tree` to `_ready`
|
Looks like this was moved from Additionally, Does changing L121 to |
Thanks for the quick reply. Your proposed solution seems to work, thanks! I modified my PR to do that instead. |
|
Hey @kumpmati, thanks for the report and the PR! Could you please attach a minimum reproducible project for me to check this issue? |
Hi, here's a minimum reproducible demo of the issue: https://github.com/kumpmati/netfox-interpolator-bug-demo |
|
Thanks for the MPR @kumpmati. It seems like only TickInterpolator is affected, the synchronizer nodes either use call_deferred(), or don't even use the configs until the first tick loop. Thanks for the effort, and congrats on your first contribution to netfox! |
Hi! First of all I'm liking the addon, thank you for making it :-)
I noticed that
TickInterpolatorprocesses its settings inside_enter_tree()instead of_ready(), which results in an error when you add properties from nodes that are belowTickInterpolatorin the scene tree.Example:


In this case I'm interpolating
%Head.global_transform, which works but gives the below error at the beginning.Changing
_enter_treeto_readyseemed to work (correct me if there are any side effects to this), and it would have the benefit of making node order irrelevant.p.s. the same pattern is also used in
RollbackSynchronizer, which could also have the same issue.