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.
26 lines
610 B
26 lines
610 B
#include "MvTexCoordCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
MvTexCoordCmd::MvTexCoordCmd(int jointIndex, TextureEditor * texEditor){
|
|
_jointIndex = jointIndex;
|
|
_texEditor = texEditor;
|
|
}
|
|
|
|
void MvTexCoordCmd::exec(){
|
|
ofLogNotice("MvTexCoordCmd", "exec");
|
|
_jointPosition = _texEditor->getJoints()[_jointIndex]->position;
|
|
}
|
|
|
|
void MvTexCoordCmd::undo(){
|
|
ofLogNotice("MvTexCoordCmd", "undo");
|
|
_texEditor->unselectAllJoints();
|
|
_texEditor->getJoints()[_jointIndex]->select();
|
|
_texEditor->getJoints()[_jointIndex]->position = _jointPosition;
|
|
_texEditor = 0;
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|