-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Establishing Connection tools #131
Conversation
Includes necessary utility function to work around the autofix cyclic functionality that was getting in the way. Acknowledging there is one bug in this commit whereby clicking on a RoadSegment to grab a RoadPoint results in not being able to use its built in 3D transform gizmo as everything is treated as a drag.
Acknowledging there is one critical bug present in dev and thus also here, whereby clicking on a RoadSegment to grab a RoadPoint results in thereafter not being able to use a RoadPoints's built in 3D transform gizmo. Everything gets treated as a drag. I will edit this PR once that is resolved. With that being just a (albeit nasty) UI interaction bug, all tests we currently have are still passing. Checking out commits one-by-one, this issue first presented itself and has been there ever since: commit |
Need to call it a night after a fair bit of troubleshooting. In short, the issue remains:
Basically it boils down to treating the click event as consumed or not:
I'll need to keep thinking on this. We may just be simply approaching this the wrong way, and need to roll up sleeves and actually update the gizmo mesh to include half of road segments in each direction. The simpler fallback would be to revert to the way we had it before, where we just tag a node to be re-selected right after the built in editor does it thing (I'm more likely to do that in the interest of time). |
This is the only way I was able to get around the issue of fighting internal 3D gizmo handles and the drag and drop operator.
Ok I've reverted the selection code - so I'd say it's now ready for review! Side note, I am expected to update documentation separately, so no need to comment on that |
Acknowledging this issue I found, regarding making connections that go in opposing orders (ie reverse.direction.connection.issue.mp4At a first look of this video, it seems like the correct prior and next point paths are indeed being assigned to the property values, but it's clearly not being handled correctly and leading to duplicative geometry. |
The newly developed functionality was focused on a new hierarchy for creating roads as well as some new tools for selecting, adding, and removing RoadPoints. So, I approached these tests from the angle of how things ought work given how they used to work. Tests:
(continued in next post) |
|
Recommendations/Suggestions:
|
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.
(See above notes.)
Thanks a ton @bdog2112 for the detailed review! A number of good points and identifies some things I didn't consider would be confusing (like the road panel being active with RoadLanes selected) but you're totally right, they are not meant to work together at all. I'll be going through all this feedback and making according changes. On the point of RoadLanes, just to be clear the point of having them in the menu is only so that they are quick and the user is aware they exist. There's no "correct" way of using them really, it's up to the developer to make any use of them at all. They just provide a path which has a canonical "forward" direction and a visualizer to match. As for the warning triangle notification: I added the convenience "check if need refreshing" function but seems to be overly picky right now, needing extra refreshes when they aren't actually needed. Not sure if I'll have that resolved this round, and generally I'd prefer it was over-complaining that refreshes were needed rather than not warn of meshes being outdated, but indeed a goal to have it improved. Will seek to improve what I can before the end of this weekend and hopefully we'll be in good-enough shape to call 0.4.0 a launch. |
Still not the best option as it requires that the RP being deleted which is connected be selected, which may be tricky to determine.
Fixes addressed with recent commits:
Open issues in my mind not yet addressed, and may be better for a v0.4.1 release:
|
Now addressed: a hack but end-user very functional and reliable dissolve function. Going to merge this in the meantime and then work on making connections between different RoadSegments after. |
Establishing Connection tools
Includes necessary utility function to work around the autofix cyclic functionality that was getting in the way.
Still in draft due to existing bug, see comment below.