TheDuckCow / godot-road-generator

A godot plugin for creating 3D highways and streets.
MIT License
311 stars 15 forks source link

Center Curve not removed when Create Edge Curves unchecked #159

Closed bdog2112 closed 3 months ago

bdog2112 commented 3 months ago

Users can create Edge Curves by selecting a RoadContainer and clicking the "Create Edge Curves" checkbox in the Inspector panel. When they uncheck the checkbox, all Edge Curves should be removed including the "edge_C" curve. However, edge_C does not currently get removed.

A minor update to the RoadSegment.clear_edge_curves routine should fix the issue. Updater should also utilize the edge constants found at the top of the RoadSegment class.

TheDuckCow commented 3 months ago

Thanks for flagging - will be good to have a fix for the next public release, but I'd say we don't have to worry about this imminently for the Wheel Steal playtest, unless you have an immediate idea on how to address (I'm guessing it'll be easy for me to investigate later if it comes to that).

bdog2112 commented 3 months ago

The fix is simple and I've already implemented it in my local copy in the WS project. I'll update the GRG project when time permits.