TheDuckCow / godot-road-generator

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

Regenerate road segments when material updated #79

Closed TheDuckCow closed 1 year ago

TheDuckCow commented 1 year ago

If the user assigns a new material to the RoadNetwork, it should add an updated material. Right now, the user would have to trigger a full reload of segments manually (most easily right now by toggling the auto refresh button on and off).

Ideally, it can do this in a lightweight way - iterating through existing meshes and updating their material slot, vs completely regenerating geometry.

bdog2112 commented 1 year ago

Please describe steps to recreate problem. I changed the road texture several times and it always updated instantly.

Steps that I followed:

Also tried:

TheDuckCow commented 1 year ago

Hm, I've retried this myself now and can no longer replicate it. It must have been resolved with some of the other updates we made around how and when refreshing works. I checked out version 0.2.0 for comparison, it was definitely an issue still then, and now is not. Even if I drag and drop a new material onto the network slot now, it immediately updates the road. Closing this issue, apologies for that!