From a4939f3a341fb09350ddb2987e6ba7c971144ee7 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Mon, 19 Sep 2016 11:54:41 +0200 Subject: [PATCH] Clean up SurfaceMangerGui::mouseDragged() --- src/Surfaces/SurfaceManagerGui.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Surfaces/SurfaceManagerGui.cpp b/src/Surfaces/SurfaceManagerGui.cpp index 71bbce4..544ee16 100644 --- a/src/Surfaces/SurfaceManagerGui.cpp +++ b/src/Surfaces/SurfaceManagerGui.cpp @@ -96,21 +96,13 @@ void SurfaceManagerGui::mousePressed(ofMouseEventArgs & args){ void SurfaceManagerGui::mouseDragged(ofMouseEventArgs & args){ if(guiMode == GuiMode::TEXTURE_MAPPING){ textureEditor.mouseDragged(args); - }else if(guiMode == GuiMode::PROJECTION_MAPPING){ - //projectionEditor.mouseDragged(args); } if(bDrag){ ofVec2f mousePosition = ofVec2f(args.x, args.y); ofVec2f distance = mousePosition - clickPosition; - if(guiMode == GuiMode::PROJECTION_MAPPING){ - - // Moves the selected surface on drag - //projectionEditor.moveSelectedSurface(distance); - }else if(guiMode == GuiMode::TEXTURE_MAPPING){ - - // Moves the crop area of the texture + if(guiMode == GuiMode::TEXTURE_MAPPING){ textureEditor.moveTexCoords(distance); } clickPosition = mousePosition;