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

Clean up some Editor, OpenXR, VideoStream code #83683

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

YuriSizov
Copy link
Contributor

While investigating some issues I noticed a few things that could be cleaned up, but don't fit any particular PR I can make right now. So I made this.

  • EditorNode has excessive and pointless checks for Input singleton (we already access it without a check prior to this, and then we also check for it twice for some reason).
  • EditorNode initialization order is a bit awkward (grouped server configuration a bit better, moved some instructions in a more sensible order).
  • OpenXR binds a method that doesn't need that (used only for call_deferred, which doesn't need it with Callable).
  • VideoStream has a formatting error (surprised it's not caught by clang format).

- EditorNode has excessive and pointless checks for Input singleton.
- EditorNode initialization order is a bit awkward.
- OpenXR binds a method that doesn't need that (for call deferred).
- VideoStream has a formatting error.
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

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

LGTM

@akien-mga akien-mga merged commit 46efe48 into godotengine:master Oct 20, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the random-cleanup branch October 20, 2023 20:16
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.

3 participants