Skip to content

Removed static variables#366

Open
najlkin wants to merge 3 commits intomasterfrom
refactor-static-vars
Open

Removed static variables#366
najlkin wants to merge 3 commits intomasterfrom
refactor-static-vars

Conversation

@najlkin
Copy link
Contributor

@najlkin najlkin commented Mar 6, 2026

Refactored code to remove static variables from VisualizationScenes, which are fine in the native app when declared as thread_local (not always the case), but fail in glvis-js, where a new instance of visualization scene is started (in the same window and thread). Initialization does not happen again and the values are carried over.
Bonus: Changed key handlers and variables to private.

@najlkin najlkin self-assigned this Mar 6, 2026
@najlkin najlkin added the bug label Mar 6, 2026
Copy link
Contributor

@camierjs camierjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @najlkin, neat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants