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

Prevent selecting hidden nodes in Canvas Item Editor #46261

Merged

Conversation

hilfazer
Copy link
Contributor

@hilfazer hilfazer commented Feb 20, 2021

It was possible to select hidden nodes in Canvas Item Editor when nested scene instantiation was involved.
Similar to #46032.

The function get_deepest_visible_node() got renamed to get_deepest_editable_node() and moved to Node.cpp. 'visible' can be confused with a different concept.

It turned out my first impression was incorrect and those issues also appear in Godot 4.0. I'll try to make a PR for master branch as well.

Edit:
I made a project for testing:
https://github.com/hilfazer/Projects/tree/EngineIssues/Godot/EngineIssues/SelectingHiddenNodesIn3DandCanvasEditors_godot32

Download link: https://downgit.github.io/#/home?url=https://github.com/hilfazer/Projects/tree/EngineIssues/Godot/EngineIssues/SelectingHiddenNodesIn3DandCanvasEditors_godot32

@hilfazer hilfazer requested a review from a team as a code owner February 20, 2021 19:05
@hilfazer hilfazer force-pushed the fix_canvas_item_editor_select_hidden_nodes branch from 13c4fab to 95073be Compare February 20, 2021 19:17
@akien-mga akien-mga merged commit 4b9b9ed into godotengine:3.2 Feb 21, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
@hilfazer hilfazer deleted the fix_canvas_item_editor_select_hidden_nodes branch July 19, 2021 08:44
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.

None yet

3 participants