You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
552 B
24 lines
552 B
#include "SelNextTexCoordCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
SelNextTexCoordCmd::SelNextTexCoordCmd(TextureEditorWidget * te){
|
|
_textureEditor = te;
|
|
}
|
|
|
|
void SelNextTexCoordCmd::exec(){
|
|
ofLogNotice("SelNextTexCoordCmd", "exec");
|
|
_prevSelection = _textureEditor->getSelectedTexCoord();
|
|
_textureEditor->selectNextTexCoord();
|
|
}
|
|
|
|
void SelNextTexCoordCmd::undo(){
|
|
ofLogNotice("SelNextTexCoordCmd", "undo");
|
|
//_textureEditor->selectPrevTexCoord();
|
|
_textureEditor->selectTexCoord(_prevSelection);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|