Closed KoBeWi closed 2 weeks ago
I can confirm the issue here. Its happening in my current project: I'm using "meta" just to check the type of object and thought of putting it on _init() was a good choice since I needed to know the "obj type" as soon as possible.
Fixed, likely after metadata rework.
Godot version: 3.2
Issue description: When you try to set a value in a node inside it's
_init()
call, it will be immediately overwritten with editor-specific values, like__edit_lock
. I mean the meta dictionary is replaced, so your values are lost.Instance.tscn
Main scene
I know this might be working correctly, but IMO the meta you set and the meta set by the engine should get merged instead of replacing one another.
Minimal reproduction project: ReproductionProject.zip