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

SwitchyFiguraAPI listening functions are permanent #51

Closed
Aproxia-dev opened this issue Aug 10, 2023 · 3 comments
Closed

SwitchyFiguraAPI listening functions are permanent #51

Aproxia-dev opened this issue Aug 10, 2023 · 3 comments

Comments

@Aproxia-dev
Copy link

When you load an avatar that uses the SwitchyFiguraAPI, and then reload it or load a different one, the listening functions from the first loaded avatar don't get removed.

This leads to the functions being ran multiple times after a switch, or the functions get ran while the avatar that uses the API isn't loaded anymore.

@Octelly
Copy link

Octelly commented Aug 10, 2023

Yeah, the previous LUA environment doesn't seem to get "discarded" on Switchy's side when an avatar reload occurs.

@Aproxia-dev
Copy link
Author

speaking of the SwitchyFiguraAPI, there's a small mistake in the documentation, where on this line, the oldPreset and newPreset are swapped.

@sisby-folk
Copy link
Owner

So this is theoretically fixed in 2.6.4 so please give it a try! I have no way of testing myself.

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

3 participants