From f2d37f88ab2da929cbaaa183a70e003ab6fe2270 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sat, 13 Feb 2016 19:36:52 +0100 Subject: [PATCH] Remove `projectionEditor` arg from `MvSurfaceVertCmd` --- src/Commands/MvSurfaceVertCmd.cpp | 9 +-------- src/Commands/MvSurfaceVertCmd.h | 5 +---- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Commands/MvSurfaceVertCmd.cpp b/src/Commands/MvSurfaceVertCmd.cpp index 5991cce..8feb78c 100644 --- a/src/Commands/MvSurfaceVertCmd.cpp +++ b/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 diff --git a/src/Commands/MvSurfaceVertCmd.h b/src/Commands/MvSurfaceVertCmd.h index f517fca..b9d958e 100644 --- a/src/Commands/MvSurfaceVertCmd.h +++ b/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; };