|
|
@ -92,6 +92,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 AddGridColCmd( |
|
|
|
(GridWarpSurface *)app->getSurfaceManager()->getSelectedSurface(), |
|
|
|
app->getGui()->getProjectionEditor() )); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
break; |
|
|
|