onready var is_ready = true suggestion does not seem to work in tool mode (the variable has no value: not true, not false... just null).
I tried the
The new test code:
export(NodePath) var path setget setPath, getPath
path = newPath
Output 1 (when I select a node):
The functions called as I expected.
Output 2 (save scene without any modifications):
set_my_path() was not called.
Output 3 (save scene, afler I changed anything in the code... ie: empty line then save)
setPath() called twice, and the
set_my_path() called once...
I still don't know what is happening here exactly, but I just realized maybe it doesn't matter.
(Is there a detailed description somewhere?)
Now I think, that the
call_deferred) is called only, if something has changed (in this case the
has_node() also works perfectly).
This information is actually enough for me.
What do you think?