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

wire variable needs in/output slots swap #110

Open
aconstlink opened this issue Nov 1, 2024 · 0 comments
Open

wire variable needs in/output slots swap #110

aconstlink opened this issue Nov 1, 2024 · 0 comments

Comments

@aconstlink
Copy link
Owner

If a variable is swapped for another type the slots need to be swapped along with that operation.

motor::wire::vec3fv_t from("my_vec3") ;
motor::wire::vec3fvd_t to("my_vec3") ;

// somehow swap the slots within the variables
from.swap_to( to ) ;

Because the topmost slots are compatible(i.e. the same type) of both the simple and detailed variable, this process is transparent.

Swapping from a detailed to a simple variable looses all sub-member slots connections though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant