Skip to content
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

Closed

Conversation

BastiaanOlij
Copy link
Collaborator

Add array operators to GD extensions

relies on godotengine/godot#52739

@@ -71,6 +71,14 @@ void Example::_bind_methods() {
BIND_CONSTANT(CONSTANT_WITHOUT_ENUM);
}

Example::Example() {
UtilityFunctions::print("Constructor.");
Copy link
Collaborator Author

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.

@BastiaanOlij
Copy link
Collaborator Author

@vnen can you review and merge? looks like its working :)

@BastiaanOlij BastiaanOlij force-pushed the array_operator branch 2 times, most recently from 2e7b766 to 86dd468 Compare September 20, 2021 09:29
Array arr;

arr.resize(2);
arr[0] = Variant(1);
Copy link
Collaborator Author

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.

@vnen
Copy link
Owner

vnen commented Sep 24, 2021

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.

@BastiaanOlij BastiaanOlij force-pushed the gdnative-extensions branch 3 times, most recently from 5b49003 to d5e0fc8 Compare September 27, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants