Browse Source

Make use of DeselectTexCoordCmd when click drag all coords

master
Krisjanis Rijnieks 9 years ago
parent
commit
b6b0c17713
  1. 6
      src/Application/Modes/TextureMappingMode.cpp

6
src/Application/Modes/TextureMappingMode.cpp

@ -205,6 +205,12 @@ void TextureMappingMode::onMousePressed(Application * app, ofMouseEventArgs & ar
_clickPosition = ofPoint(args.x, args.y); _clickPosition = ofPoint(args.x, args.y);
_bCropAreaDrag = true; _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: emit event through the gui singleton.
// TODO: create command only on mouse release. // TODO: create command only on mouse release.
app->getCmdManager()->exec(new MvAllTexCoordsCmd( app->getCmdManager()->exec(new MvAllTexCoordsCmd(

Loading…
Cancel
Save