From 0a44a5b60df768b9a60f1c51612c3c5c5f55f91b Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 2 May 2014 12:03:52 +0200 Subject: [PATCH] + Remove external geometry when changing support face --- src/Mod/Sketcher/App/SketchObject.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 062629442a..71503392c1 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -1584,11 +1584,10 @@ void SketchObject::onChanged(const App::Property* prop) else if (prop == &Support) { // make sure not to change anything while restoring this object if (!isRestoring()) { - // if support face was cleared then also clear the external geometry - if (!Support.getValue()) { - std::vector obj; - std::vector sub; - ExternalGeometry.setValues(obj, sub); + // if support face has changed then clear the external geometry + delConstraintsToExternal(); + for (int i=0; i < getExternalGeometryCount(); i++) { + delExternal(0); } } }