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:
Jonathan Bosson
2017-04-12 14:37:28 -06:00
parent 53f679ae92
commit ab877feaf9
6 changed files with 336 additions and 26 deletions

View File

@@ -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);