Skip to content

Commit

Permalink
Sketcher: No vertex color update (selection/preselection) after box s…
Browse files Browse the repository at this point in the history
…election

=============================================================================

The issue:
https://forum.freecadweb.org/viewtopic.php?f=10&t=56550#p486554

The fix:
Setting the render type to Image causes the issue, but neither do I know why it is
necessary to set it to Image, nor do I understand why this is causing the issue. I
only know it solves the issue.
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed Mar 29, 2021
1 parent 5c4f9df commit ebfaa6a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -948,9 +948,6 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe
doBoxSelection(prvCursorPos, cursorPos, viewer);
rubberband->setWorking(false);

//disable framebuffer drawing in viewer
const_cast<Gui::View3DInventorViewer *>(viewer)->setRenderType(Gui::View3DInventorViewer::Native);

// a redraw is required in order to clear the rubberband
draw(true,false);
const_cast<Gui::View3DInventorViewer*>(viewer)->redraw();
Expand Down Expand Up @@ -1372,7 +1369,6 @@ bool ViewProviderSketch::mouseMove(const SbVec2s &cursorPos, Gui::View3DInventor
case STATUS_SKETCH_StartRubberBand: {
Mode = STATUS_SKETCH_UseRubberBand;
rubberband->setWorking(true);
viewer->setRenderType(Gui::View3DInventorViewer::Image);
return true;
}
case STATUS_SKETCH_UseRubberBand: {
Expand Down

0 comments on commit ebfaa6a

Please sign in to comment.