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

Can't lock Node3D under SubViewport (in editor) #80083

Closed
AndHalfAFish opened this issue Jul 31, 2023 · 6 comments
Closed

Can't lock Node3D under SubViewport (in editor) #80083

AndHalfAFish opened this issue Jul 31, 2023 · 6 comments
Labels

Comments

@AndHalfAFish
Copy link

Godot version

4.1.1

System information

Godot v4.1.1.stable - TUXEDO OS 2 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Laptop GPU () - AMD Ryzen 9 5900HX with Radeon Graphics (16 Threads)

Issue description

3D nodes in the scene tree can be locked in the editor, to prevent accidental selection in the viewport.
3D nodes that are children of a SubViewport node cannot be locked in the same way.

Steps to reproduce

see project file

Minimal reproduction project

test_node_lock.zip

@KoBeWi
Copy link
Member

KoBeWi commented Jul 31, 2023

Duplicate of #30910

@KoBeWi KoBeWi marked this as a duplicate of #30910 Jul 31, 2023
@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2023
@AndHalfAFish
Copy link
Author

@KoBeWi : you wrote "Seeing how this is intended and the locking would be useless (you can't move/select nodes inside Viewport anyways...) ..." in #30910

Could you explain please what you mean ? I -can- select 3d meshes in the viewport when those meshes are under a SubViewport node.

Thanks.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 31, 2023

Maybe it has changed since I made that comment, but seems like viewport behavior in 3D is different than in 2D. In 2D the nodes under sub-viewport are not displayed unless you display the content of the viewport somehow. I wonder if it's intended.

@AndHalfAFish
Copy link
Author

Seems like a bug to me. =)
But the issue is closed, so, it won't be fixed ...

@KoBeWi
Copy link
Member

KoBeWi commented Jul 31, 2023

The original issue about locks not working is still opened.
The viewport bug is a separate issue; if it turns out intended then the locks can be changed to work in viewports (I think it's a one line change).

btw you can see and edit nodes inside viewports, because they share World3D by default. They become invisible once you make the world unique, but can still be edited. This part is definitely not intended.

@AndHalfAFish
Copy link
Author

Thanks for the explanation !

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

No branches or pull requests

2 participants