diff --git a/src/Application/Modes/TextureMappingMode.cpp b/src/Application/Modes/TextureMappingMode.cpp index 80708d0..c31a276 100644 --- a/src/Application/Modes/TextureMappingMode.cpp +++ b/src/Application/Modes/TextureMappingMode.cpp @@ -204,6 +204,12 @@ void TextureMappingMode::onMousePressed(Application * app, ofMouseEventArgs & ar _clickPosition = ofPoint(args.x, args.y); _bCropAreaDrag = true; + + int selectedTexCoordIndex = Gui::instance()->getTextureEditorWidget().getSelectedTexCoord(); + if(selectedTexCoordIndex != -1){ + app->getCmdManager()->exec(new DeselectTexCoordCmd( + &Gui::instance()->getTextureEditorWidget())); + } // TODO: emit event through the gui singleton. // TODO: create command only on mouse release.