diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index f333cad..33a4e70 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -170,6 +170,10 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar break; case ' ': + if(app->getSurfaceManager()->getSelectedSurface() == 0){ + return; + } + if(app->getSurfaceManager()->getSelectedSurface()->getSource()->getType() == SourceType::SOURCE_TYPE_VIDEO){ app->getCmdManager()->exec(