From 11b187309b5bb7f1197c7bd43d6d87c61a082fd0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 16 May 2017 19:30:13 +0200 Subject: [PATCH] fix crash when Part model changes with VBO activated --- src/Mod/Part/Gui/ViewProviderExt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index c94fdf81ec..d4817e46de 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -815,9 +815,6 @@ void ViewProviderPartExt::reload() void ViewProviderPartExt::updateData(const App::Property* prop) { if (prop->getTypeId() == Part::PropertyPartShape::getClassTypeId()) { - Gui::SoUpdateVBOAction action; - action.apply(this->faceset); - // get the shape to show const TopoDS_Shape &cShape = static_cast(prop)->getValue(); @@ -876,6 +873,9 @@ void ViewProviderPartExt::unsetEdit(int ModNum) void ViewProviderPartExt::updateVisual(const TopoDS_Shape& inputShape) { + Gui::SoUpdateVBOAction action; + action.apply(this->faceset); + // Clear selection Gui::SoSelectionElementAction saction(Gui::SoSelectionElementAction::None); saction.apply(this->faceset);