Closed thankjura closed 6 years ago
Will check!
@thankjura Just pushed a fix, can you try it out?
Yes. It fixes, thanks
Hm. register_property do not work:
I add _register_methods() { register_property<PlayerHenry, Vector2> ("main/test", &PlayerHenry::test, Vector2(10,20)); }
_ready() { Godot::print(test); }
output: 0,0
Will take a look
I can't reproduce the issue, it works as expected for me :/
If I change default value in editor - bug disapper.
Actually I don't think that's a bug. You are supposed to have initialized the variable with the default value. If the property never gets set from the outside then the value will never be different than the one it already has - which after initialization is 0,0.
So that's not a bug :D
I can't add node with custom class to scene. Problem appeared in the last commit.
Demo: cpp-inst.zip