Browse Source

Fix crash on space press when no surface selected in projection mapping mode

master
Krisjanis Rijnieks 9 years ago
parent
commit
f392cab199
  1. 4
      src/Application/ProjectionMappingState.cpp

4
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(

Loading…
Cancel
Save