From 85e8ad36b5ffafe6f72d9c0993450cf2fe07eced Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 28 Mar 2021 19:25:55 +0200 Subject: [PATCH] Sketcher: No vertex color update (selection/preselection) after box selection ============================================================================= 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. --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 5e0472f26d..5e5bf3a35c 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -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(viewer)->setRenderType(Gui::View3DInventorViewer::Native); - // a redraw is required in order to clear the rubberband draw(true,false); const_cast(viewer)->redraw(); @@ -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: {