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

Editor: Fix invalid use of Node::get_viewport() after rename of EditorNode::get_viewport() #44768

Merged

Conversation

akien-mga
Copy link
Member

Fixes #44761, was a regression from #44524.

The PR passed CI because EditorNode::get_viewport() used to shadow Node::get_viewport()
(which was a bug in itself, fixed by #44524), so once it was renamed the existing code
relying on it fell back to the now available Node::get_viewport().

⚠️ This might bite some thirdparty modules too.

…rNode::get_viewport()

Fixes godotengine#44761, was a regression from godotengine#44524.

The PR passed CI because EditorNode::get_viewport() used to shadow Node::get_viewport()
(which was a bug in itself, fixed by godotengine#44524), so once it was renamed the existing code
relying on it fell back to the now available Node::get_viewport().
This might bite some thirdparty modules too.
@akien-mga akien-mga merged commit 593d035 into godotengine:master Dec 28, 2020
@akien-mga akien-mga deleted the fix-44761-wrong-get_viewport branch December 28, 2020 19:19
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.

Crash on master in CanvasItemEditorPlugin constructor
2 participants