Browse Source

Remove `projectionEditor` arg from `MvSurfaceVertCmd`

master
Krisjanis Rijnieks 9 years ago
parent
commit
f2d37f88ab
  1. 9
      src/Commands/MvSurfaceVertCmd.cpp
  2. 5
      src/Commands/MvSurfaceVertCmd.h

9
src/Commands/MvSurfaceVertCmd.cpp

@ -3,13 +3,9 @@
namespace ofx {
namespace piMapper {
MvSurfaceVertCmd::MvSurfaceVertCmd(int vertIndex,
BaseSurface * surface,
ProjectionEditor * projectionEditor){
MvSurfaceVertCmd::MvSurfaceVertCmd(int vertIndex, BaseSurface * surface){
_vertIndex = vertIndex;
_surface = surface;
_projectionEditor = projectionEditor;
}
void MvSurfaceVertCmd::exec(){
@ -20,9 +16,6 @@ void MvSurfaceVertCmd::exec(){
void MvSurfaceVertCmd::undo(){
ofLogNotice("MvSurfaceVertCommand", "undo");
_surface->setVertex(_vertIndex, _prevVertPos);
_projectionEditor->updateJoints();
_projectionEditor = 0;
_surface = 0;
}
} // namespace piMapper

5
src/Commands/MvSurfaceVertCmd.h

@ -15,9 +15,7 @@ namespace piMapper {
class MvSurfaceVertCmd : public BaseUndoCmd {
public:
MvSurfaceVertCmd(int vertIndex,
BaseSurface * surface,
ProjectionEditor * projectionEditor);
MvSurfaceVertCmd(int vertIndex, BaseSurface * surface);
void exec();
void undo();
@ -25,7 +23,6 @@ class MvSurfaceVertCmd : public BaseUndoCmd {
int _vertIndex;
ofVec2f _prevVertPos;
BaseSurface * _surface;
ProjectionEditor * _projectionEditor;
};

Loading…
Cancel
Save