From 0d6d12c8946f5d45136dc0ca4c3539ad571c34fa Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Mon, 19 Sep 2016 12:00:39 +0200 Subject: [PATCH] Clean up TextureMappingState a bit --- src/Application/States/TextureMappingState.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Application/States/TextureMappingState.cpp b/src/Application/States/TextureMappingState.cpp index c1acf20..882bb98 100644 --- a/src/Application/States/TextureMappingState.cpp +++ b/src/Application/States/TextureMappingState.cpp @@ -146,7 +146,6 @@ void TextureMappingState::onMouseReleased(Application * app, ofMouseEventArgs & _clickCanvasTranslate = _canvasTranslate; - // Alter mouse event args to match canvas translation args.x -= _canvasTranslate.x; args.y -= _canvasTranslate.y; @@ -154,9 +153,9 @@ void TextureMappingState::onMouseReleased(Application * app, ofMouseEventArgs & app->getGui()->getTextureEditor()->stopDragJoints(); } +// TODO: Handle app->getGui()->clickPosition and app->getGui()->bDrag locally. void TextureMappingState::onMouseDragged(Application * app, ofMouseEventArgs & args){ if(!_bTranslateCanvas){ - // Alter mouse event args to match canvas translation args.x -= _canvasTranslate.x; args.y -= _canvasTranslate.y; app->getGui()->getTextureEditor()->mouseDragged(args);