Browse Source

Notify `backgroundPressedEvent` instead of deselect cmd

master
Krisjanis Rijnieks 9 years ago
parent
commit
5eef8ef8e5
  1. 3
      src/Surfaces/SurfaceManagerGui.cpp

3
src/Surfaces/SurfaceManagerGui.cpp

@ -168,8 +168,7 @@ void SurfaceManagerGui::mousePressed(ofMouseEventArgs & args){
startDrag(); // TODO: Should be something like `hitSurface->startDrag()`
Gui::instance()->notifySurfacePressed(args, hitSurface);
}else{
//projectionEditor.clearJoints();
_cmdManager->exec(new DeselectSurfaceCmd(surfaceManager));
Gui::instance()->notifyBackgroundPressed(args);
}
}else if(guiMode == GuiMode::SOURCE_SELECTION){}
}

Loading…
Cancel
Save