Browse Source

Add select next vertex or tex coord depending on mode

master
Krisjanis Rijnieks 8 years ago
parent
commit
23435311c0
  1. 12
      example-custom-shortcuts/src/ofApp.cpp

12
example-custom-shortcuts/src/ofApp.cpp

@ -49,9 +49,17 @@ void ofApp::keyPressed(int key){
}else if(key == 'd'){
mapper.duplicateSurface();
}else if(key == 'l'){
mapper.selectNextVertex();
if(mapper.getMode() == ofx::piMapper::Mode::MAPPING_MODE){
mapper.selectNextVertex();
}else if(mapper.getMode() == ofx::piMapper::Mode::TEXTURE_MODE){
mapper.selectNextTexCoord();
}
}else if(key == 'h'){
mapper.selectPrevVertex();
if(mapper.getMode() == ofx::piMapper::Mode::MAPPING_MODE){
mapper.selectPrevVertex();
}else if(mapper.getMode() == ofx::piMapper::Mode::TEXTURE_MODE){
mapper.selectPrevTexCoord();
}
}else if(key == 'i'){
mapper.moveLayerUp();
}else if(key == 'u'){

Loading…
Cancel
Save