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

@ -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.

Loading…
Cancel
Save