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

Fix libwebp Node struct shadowing Godot's Node class in MSVC debugger #75769

Merged
merged 1 commit into from
May 19, 2023

Conversation

lyuma
Copy link
Contributor

@lyuma lyuma commented Apr 6, 2023

I was having an issue when debugging on Visual Studio that sometimes the struct Node contents from libwebp quant_enc.c such as int8_t prev were showing up in the debugger instead of the godot Node class (for example, when clicking on the parent of Node3D to access the node's name in the debugger).

This renames the struct using a #define. it should have no effect, other than to prevent a conflicting/shadowing struct Node from showing up in the debug data.

@lyuma lyuma requested a review from a team as a code owner April 6, 2023 21:34
@YuriSizov YuriSizov added this to the 4.1 milestone Apr 7, 2023
Copy link
Member

@RedworkDE RedworkDE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm the issue, can confirm this fixes it and cannot think of any issues that could be caused by this.

@AThousandShips
Copy link
Member

AThousandShips commented May 19, 2023

Maybe clarify this is about webp in the commit, hard to tell what this is about by just looking at it (first assumption made me think it was about the node in Godot)

Something like "Fix MSVC debugger for dev_build using webp Node for Godot" I'm not sure what the correct wording based on what's fixed would be

@akien-mga akien-mga changed the title Fix Node class in MSVC debugger for dev_build Fix libwebp Node struct shadowing Godot's Node class in MSVC debugger May 19, 2023
@akien-mga
Copy link
Member

I think the commit is already ok here, but I've amended the PR title for extra clarity.

@akien-mga akien-mga merged commit b4584c0 into godotengine:master May 19, 2023
@akien-mga
Copy link
Member

Thanks!

@lyuma lyuma deleted the msvc_node_debug_fix branch May 19, 2023 10:35
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants