diff --git a/src/Application/TextureMappingState.cpp b/src/Application/TextureMappingState.cpp index 56a0037..20f0d6a 100644 --- a/src/Application/TextureMappingState.cpp +++ b/src/Application/TextureMappingState.cpp @@ -30,6 +30,10 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args) break; case ' ': + if(app->getSurfaceManager()->getSelectedSurface() == 0){ + return; + } + if(app->getSurfaceManager()->getSelectedSurface()->getSource()->getType() == SourceType::SOURCE_TYPE_VIDEO){ app->getCmdManager()->exec(