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

Recover from RP renaming with meta #165

Open
TheDuckCow opened this issue Apr 28, 2024 · 0 comments
Open

Recover from RP renaming with meta #165

TheDuckCow opened this issue Apr 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TheDuckCow
Copy link
Owner

Right now, renaming a RoadPoint which is already connected to other roadpoints or is the edge of a RoadContainer is a big no-no. It will break any of the NodePath's set up pointing it to other places. yet, we cannot prevent a user from renaming a node.

Enter the idea: using meta (or, another var field within the RoadPoint class). We can manually add non persistent data to RoadPoints to track data. This could be very useful to help recover from situations where the user has renamed a RoadPoint in their scene, so if we see that the given name is not matching the meta name, it can kick off a request to attempt re-connection to other nodes.

This would help make the Road Generator feel a fair bit less brittle.

@TheDuckCow TheDuckCow added the enhancement New feature or request label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant