From cf60a372dfb7506b5248d5c55f82747db1c245ec Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Thu, 3 Mar 2016 18:07:09 +0100 Subject: [PATCH] Select first surface when hitting tab in projection mapping mode if no surface selected --- src/Application/ProjectionMappingState.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index cb5a0ba..6965010 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -179,6 +179,8 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar new SetNextSourceCmd( app->getSurfaceManager()->getSelectedSurface(), app->getGui()->getSourcesEditor())); + }else{ + app->getCmdManager()->exec(new SelNextSurfaceCmd(app->getSurfaceManager())); } break;