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 "SelPrevTexCoordCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
SelPrevTexCoordCmd::SelPrevTexCoordCmd(TextureEditorWidget * te){
|
|
_textureEditor = te;
|
|
}
|
|
|
|
void SelPrevTexCoordCmd::exec(){
|
|
ofLogNotice("SelPrevTexCoordCmd", "exec");
|
|
_prevSelection = _textureEditor->getSelectedTexCoord();
|
|
_textureEditor->selectPrevTexCoord();
|
|
}
|
|
|
|
void SelPrevTexCoordCmd::undo(){
|
|
ofLogNotice("SelPrevTexCoordCmd", "undo");
|
|
//_textureEditor->selectNextTexCoord();
|
|
_textureEditor->selectTexCoord(_prevSelection);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|