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

Cannot make smooth points on Curve3D in Godot 4 #56052

Closed
superlou opened this issue Dec 18, 2021 · 7 comments
Closed

Cannot make smooth points on Curve3D in Godot 4 #56052

superlou opened this issue Dec 18, 2021 · 7 comments

Comments

@superlou
Copy link

Godot version

v4.0.dev.20211210.official [21b8199]

System information

Linux Mint 19.2

Issue description

I can create a Path3D nodes and add a Curve3D to it and add sharp points. However, unlike in Godot 3, ctrl+dragging a point to create a smooth point (and move the control handles) does not work. Instead, the point appears to drag with a snap or quantization. Other modifier keys like shift, alt, and ctrl+shift don't seem to behave any differently. Points can be deleted as expected.

Steps to reproduce

  1. Create a new Godot 4 project.
  2. Add a Path3D node
  3. Add a Curve3D to the Path3D
  4. Add points
  5. Drag a point while holding ctrl

The point "snap" drags and control handles for a smooth point do not appear.

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Dec 18, 2021

The Ctrl key press is read in the Path3D editor plugin:

if (mb->is_pressed() && mb->get_button_index() == MouseButton::LEFT && (curve_create->is_pressed() || (curve_edit->is_pressed() && mb->is_ctrl_pressed()))) {

However, I guess this broke in the editor subgizmos refactor or something similar. cc @JFonS

Instead, the point appears to drag with a snap or quantization.

Transform snapping in editors is toggled by holding Ctrl, so I suggest that Curve3D smoothing should be moved to a separate shortcut such as Alt. However, this will break on most window managers on Linux (since they intercept Alt + Left mouse button combinations). Maybe Alt + Shift would work, but I'm not sure.

@JFonS
Copy link
Contributor

JFonS commented Jan 24, 2022

Closing as fixed by #56692. Feel free to re-open if the issue is still valid in master.

@JFonS JFonS closed this as completed Jan 24, 2022
@parmezan38
Copy link

I'm on Windows 10 and this exact issue is still happening in Godot 4.2.1 - v4.2.1.stable.official [b09f793].
ctrl key only snaps the position, alt and shift keys aren't having any effect on the behavior.
Also tried switching the Navigation Scheme but it doesn't seem to make any difference.

@32kda
Copy link

32kda commented Mar 15, 2024

Also seeing the same issue on v.4.2.1. For me it works well for Perspective view, but doesn't work for Orthogonal

@romifauzi
Copy link

I can confirm this issue still exists in 4.2.1 stable, like @32kda said, it works in Perspective view, but doesn't work in Orthogonal view (Top view in my case).

@superlou
Copy link
Author

superlou commented Apr 1, 2024

Same behavior on Linux Mint with 4.2.1 stable.

@Calinou
Copy link
Member

Calinou commented Apr 2, 2024

Regarding the general regression in 4.3.dev, please continue the discussion in #89138. Regarding the issue with an orthogonal editor camera, please continue the discussion in #85795.

Note that in 4.2.1, when using a perspective camera, dragging curves from a point works – I've just tested it there. However, you need to hold Shift and not Ctrl. This was changed to avoid conflicts with the Ctrl snapping modifier and for consistency with the Path2D editor.

drag_curve_points.mp4

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

No branches or pull requests

6 participants