-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Add closed
property to Curve3D
#86195
Conversation
_closed
property to Curve3D
closed
property to Curve3D
Should I commit the changes to the branch as they are ready or wait to complete all of them? I'm not sure if running CI/CD checks every time is a problem... |
Any idea when to merge this and set a milestone? 4.3 or 4.4? |
It hasn't been reviewed or decided on so it's in 4.x until some decision or review has been made 🙂 |
No one ever reprimanded me for committing to a live PR branch, so I think it's fine - just be sure to squash your commits afterwards (see: Pull request workflow). |
0a36052
to
b305348
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (rebased on top of master
29b3d9e), I noticed some issues:
- The start/end color for gizmos only appears at certain camera angles. Perhaps two sprite gizmos are overlapping and only one of them is showing up?
path3d_editor.mp4
This also causes the colors to stop appearing depending on the number of points drawn:
path3d_editor_2.mp4
They show up reliably in a top orthogonal view, which is what leads me to think it's an overlapping gizmo sorting issue:
Also, as an improvement, I suggest drawing the last line that goes from the last point to the first in a different color:
Mockup made in GIMP:
This way, you can tell which line is automatically being inferred by the engine as opposed as being designed by the user.
Thanks for the review @Calinou! Yes, this worked well before #87901, and there's this other PR #89847 that refines Since they work on the same lines of code, I'd like to wait for #89847 to be merged, that defines stuff the lack of which makes difficult to finalize these last tweaks you mentioned. Is that okay? 😊 |
|
b305348
to
4a2a5a8
Compare
I fixed the handles issue @Calinou. Also fixed handles color in the curve edit mode, after the rebase. I didn't implement the last segment color change though, as I realized that it would require some decent work, since we don't have access to control points but the baked ones. Eventually to add in a later PR? |
1199055
to
3008b6d
Compare
Changes implemented. Also fixed a couple of bugs. Not sure why it fails the check on Linux 🤔
|
What do you mean in regards to not having access to control points? I made some changes in #90357 that caches baked distance at each original control point. Not sure whether that's relevant here. Great commit btw I was needing this, super suprised closed curves weren't a thing already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (rebased on top of master
79de2ea), it works as expected. I think this is in a good state to be merged early in the 4.4 cycle.
path3d_closed.mp4
3008b6d
to
eb023a9
Compare
Thanks for the review! |
eb023a9
to
aac5eed
Compare
Rebased :) |
aac5eed
to
0ec5ae2
Compare
This seems fine overall to me, but I question the usefulness of the |
I honestly don't recall why |
0ec5ae2
to
680e267
Compare
680e267
to
790efbb
Compare
Thanks! |
Should close godotengine/godot-proposals#6396 and close godotengine/godot-proposals#8650
2023-12-16-21-37-14.mp4
TODO:
_closed = true
;_closed = true
;Close Curve button could become a Closed Curve toggle, so that user can easily access the value through the already nice icon on the top bar of the viewport;Path3DEditorPlugin Close Curve button is now a "Toggle Open/Closed Curve" button that just toggles the curveclosed
property;TODO (optional):
If you have suggestions about what behaviour I should try to check if stuff is broken by this change let me know (for example something like
PathFollow3D
...).