mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-27 23:39:01 -06:00
first step for LM algorithm on screen-space points, camera/focusnode causes crashes if not initialized, where do we do this best?
This commit is contained in:
@@ -123,6 +123,9 @@ TouchModule::TouchModule()
|
||||
OsEng.registerModuleCallback(
|
||||
OpenSpaceEngine::CallbackOption::PreSync,
|
||||
[&]() {
|
||||
touch->setCamera(OsEng.interactionHandler().camera());
|
||||
touch->setFocusNode(OsEng.interactionHandler().focusNode());
|
||||
|
||||
if (gotNewInput() && OsEng.windowWrapper().isMaster()) {
|
||||
touch->update(list, lastProcessed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user