|
|
@ -83,7 +83,7 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface()->getType() == |
|
|
|
SurfaceType::GRID_WARP_SURFACE){ |
|
|
|
|
|
|
|
if(((GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface())->getGridRows() > 1){ |
|
|
|
if(((GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface())->getGridRows() > 2){ |
|
|
|
// TODO: The command should not require projection editor pointer
|
|
|
|
app->getCmdManager()->exec( |
|
|
|
new RmGridRowCmd( |
|
|
@ -111,7 +111,7 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface()->getType() == |
|
|
|
SurfaceType::GRID_WARP_SURFACE){ |
|
|
|
|
|
|
|
if(((GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface())->getGridCols() > 1){ |
|
|
|
if(((GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface())->getGridCols() > 2){ |
|
|
|
// TODO: The command should not require projection editor pointer
|
|
|
|
app->getCmdManager()->exec( |
|
|
|
new RmGridColCmd( |
|
|
|