|
|
@ -113,19 +113,11 @@ void TextureMappingMode::onKeyPressed(Application * app, ofKeyEventArgs & args){ |
|
|
|
break; |
|
|
|
|
|
|
|
case '>': |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface() == 0){ |
|
|
|
return; |
|
|
|
} |
|
|
|
app->getCmdManager()->exec( |
|
|
|
new SelNextTexCoordCmd(&Gui::instance()->getTextureEditorWidget())); |
|
|
|
selectNextVertex(app); |
|
|
|
break; |
|
|
|
|
|
|
|
case '<': |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface() == 0){ |
|
|
|
return; |
|
|
|
} |
|
|
|
app->getCmdManager()->exec( |
|
|
|
new SelPrevTexCoordCmd(&Gui::instance()->getTextureEditorWidget())); |
|
|
|
selectPrevVertex(app); |
|
|
|
break; |
|
|
|
|
|
|
|
case ' ': |
|
|
@ -322,6 +314,22 @@ void TextureMappingMode::moveSelection(Application * app, ofVec2f by){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void TextureMappingMode::selectNextVertex(Application * app){ |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface() != 0){ |
|
|
|
app->getCmdManager()->exec( |
|
|
|
new SelNextTexCoordCmd( |
|
|
|
&Gui::instance()->getTextureEditorWidget())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void TextureMappingMode::selectPrevVertex(Application * app){ |
|
|
|
if(app->getSurfaceManager()->getSelectedSurface() != 0){ |
|
|
|
app->getCmdManager()->exec( |
|
|
|
new SelPrevTexCoordCmd( |
|
|
|
&Gui::instance()->getTextureEditorWidget())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ofPoint TextureMappingMode::getTranslation(){ |
|
|
|
return _canvasTranslate; |
|
|
|
} |
|
|
|