mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-10 13:40:08 -06:00
Feature/globals handling (#1352)
* Cleaner handling of global state * Prevent Lua memory corruption (closes #982) * Initialize glfw first thing to prevent weird joystick loading bug during startup
This commit is contained in:
@@ -162,11 +162,11 @@ NavigationHandler::~NavigationHandler() {} // NOLINT
|
||||
void NavigationHandler::initialize() {
|
||||
ZoneScoped
|
||||
|
||||
global::parallelPeer.connectionEvent().subscribe(
|
||||
global::parallelPeer->connectionEvent().subscribe(
|
||||
"NavigationHandler",
|
||||
"statusChanged",
|
||||
[this]() {
|
||||
_useKeyFrameInteraction = (global::parallelPeer.status() ==
|
||||
_useKeyFrameInteraction = (global::parallelPeer->status() ==
|
||||
ParallelConnection::Status::ClientWithHost);
|
||||
}
|
||||
);
|
||||
@@ -175,7 +175,7 @@ void NavigationHandler::initialize() {
|
||||
void NavigationHandler::deinitialize() {
|
||||
ZoneScoped
|
||||
|
||||
global::parallelPeer.connectionEvent().unsubscribe("NavigationHandler");
|
||||
global::parallelPeer->connectionEvent().unsubscribe("NavigationHandler");
|
||||
}
|
||||
|
||||
void NavigationHandler::setFocusNode(SceneGraphNode* node) {
|
||||
|
||||
Reference in New Issue
Block a user