Skip to content

Commit

Permalink
+ Remove external geometry when changing support face
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 2, 2014
1 parent ec7573d commit 07f3f82
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Mod/Sketcher/App/SketchObject.cpp
Expand Up @@ -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<DocumentObject*> obj;
std::vector<std::string> 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);
}
}
}
Expand Down

0 comments on commit 07f3f82

Please sign in to comment.