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
555 B
24 lines
555 B
#include "SelTexCoordCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
SelTexCoordCmd::SelTexCoordCmd(TextureEditorWidget * te, int texCoordIndex){
|
|
_textureEditor = te;
|
|
_texCoordIndex = texCoordIndex;
|
|
}
|
|
|
|
void SelTexCoordCmd::exec(){
|
|
ofLogNotice("SelTexCoordCmd", "exec");
|
|
_prevSelectionIndex = _textureEditor->getSelectedTexCoord();
|
|
_textureEditor->selectTexCoord(_texCoordIndex);
|
|
}
|
|
|
|
void SelTexCoordCmd::undo(){
|
|
ofLogNotice("SelTexCoordCmd", "undo");
|
|
_textureEditor->selectTexCoord(_prevSelectionIndex);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|