-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array operators #23
Array operators #23
Conversation
e2ec9f4
to
470aca3
Compare
@@ -71,6 +71,14 @@ void Example::_bind_methods() { | |||
BIND_CONSTANT(CONSTANT_WITHOUT_ENUM); | |||
} | |||
|
|||
Example::Example() { | |||
UtilityFunctions::print("Constructor."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, added these for testing, but worth keeping in here I think.
@vnen can you review and merge? looks like its working :) |
2e7b766
to
86dd468
Compare
Array arr; | ||
|
||
arr.resize(2); | ||
arr[0] = Variant(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vnen so this test case currently crashes but seemingly not in relation to the array but the way the variants are accessed.
Any chance you could try out my PR and see the crash for yourself? I haven't got a clue what is going on here.
I did look into this but I couldn't yet figure out why this is crashing. It definitely has a bogus Variant value, probably not properly constructed, but I can't tell where exactly it is. |
5b49003
to
d5e0fc8
Compare
86dd468
to
075c932
Compare
Add array operators to GD extensions
relies on godotengine/godot#52739