Browse Source

Select first surface when hitting tab and none is selected in texture edit mode

master
Krisjanis Rijnieks 9 years ago
parent
commit
9a15e57b3b
  1. 2
      src/Application/TextureMappingState.cpp
  2. 1
      src/Application/TextureMappingState.h

2
src/Application/TextureMappingState.cpp

@ -40,6 +40,8 @@ void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args)
new SetNextSourceCmd( new SetNextSourceCmd(
app->getSurfaceManager()->getSelectedSurface(), app->getSurfaceManager()->getSelectedSurface(),
app->getGui()->getSourcesEditor())); app->getGui()->getSourcesEditor()));
}else{
app->getCmdManager()->exec(new SelNextSurfaceCmd(app->getSurfaceManager()));
} }
break; break;
} }

1
src/Application/TextureMappingState.h

@ -8,6 +8,7 @@
#include "SelPrevTexCoordCmd.h" #include "SelPrevTexCoordCmd.h"
#include "DeselectTexCoordCmd.h" #include "DeselectTexCoordCmd.h"
#include "SetNextSourceCmd.h" #include "SetNextSourceCmd.h"
#include "SelNextSurfaceCmd.h"
namespace ofx { namespace ofx {
namespace piMapper { namespace piMapper {

Loading…
Cancel
Save