diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index 2bf0a3a..8873318 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -78,6 +78,20 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar } } break; + + case '{': + if(app->getSurfaceManager()->getSelectedSurface() != 0){ + if(app->getSurfaceManager()->getSelectedSurface()->getType() == + SurfaceType::GRID_WARP_SURFACE){ + + // TODO: The command should not require projection editor pointer + app->getCmdManager()->exec( + new RmGridRowCmd( + (GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface(), + app->getGui()->getProjectionEditor() )); + } + } + break; default: break; diff --git a/src/Application/ProjectionMappingState.h b/src/Application/ProjectionMappingState.h index f0033d9..1aa0497 100644 --- a/src/Application/ProjectionMappingState.h +++ b/src/Application/ProjectionMappingState.h @@ -7,6 +7,7 @@ #include "AddSurfaceCmd.h" #include "RmSurfaceCmd.h" #include "AddGridRowCmd.h" +#include "RmGridRowCmd.h" #include "TogglePerspectiveCmd.h" #include "SurfaceType.h"