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

Click and drag on any node in 3D incorrectly moves selected node #85736

Closed
Cammymoop opened this issue Dec 4, 2023 · 0 comments · Fixed by #87948 · May be fixed by #85740
Closed

Click and drag on any node in 3D incorrectly moves selected node #85736

Cammymoop opened this issue Dec 4, 2023 · 0 comments · Fixed by #87948 · May be fixed by #85740

Comments

@Cammymoop
Copy link
Contributor

Cammymoop commented Dec 4, 2023

Godot version

3.5 stable, all 4.x stable versions

System information

Godot v4.2.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 31.0.21023.2010) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

Issue description

So this seems to be an old one, but got worse in 3.5 and 4.0, I couldn't find any other issues about this.

Basically when in Select Mode in the 3D editor, with a node selected, clicking and dragging on any node moves the currently selected node as if you had clicked on it, regardless of which node is under the mouse cursor. Prior to 3.5 this only happened with locked nodes under the mouse specifically.

I believe the correct behavior would be to move the node under the cursor, unless it is locked in which case a box selection would be started. This would be consistent with the 2D editor and would avoid the situation in the 3D editor where you cannot perform box selection because the background is obscured by locked nodes.

Current behavior:

  • No node selected, click anything and drag -> box selection
  • Node selected, click on any node and drag -> selected node moves
  • Node selected, click on background and drag -> box selection

GIF demonstration, the sphere is locked:
3_5_behavior

Prior to 3.5 the behavior worked like this:

  • No node selected, click background and drag -> box selection
  • No node selected, click unlocked or locked node and drag -> node moves if unlocked, no box selection
  • Node selected, click on any unlocked node and drag -> node under mouse is selected and moves
  • Node selected, click on any locked node and drag -> selected node moves
  • Node selected, click on background and drag -> box selection
GIF of 3.2 - 3.4 behavior (the sphere is locked)

3_2_behavior

It seems prior to 3.2 you could click and select locked nodes in the 3D editor and that seems to have prevented the bug from appearing at all.

GIF of original behavior

behavior_up_to_3_1_2

Steps to reproduce

  • Open the included Godot 4 project or create a blank project and add multiple objects into a 3d scene.
  • Select one node
  • (after 3.5) While staying in Select mode, click the mouse in the 3D view over a non-selected node and drag
  • (prior to 3.5) click the mouse over a locked node and drag

Minimal reproduction project

TestClickDrag.zip

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