Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 1, 2015
2 parents 051b38b + f545455 commit f3af41e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/Mod/Part/App/FeatureChamfer.cpp
Expand Up @@ -77,9 +77,13 @@ App::DocumentObjectExecReturn *Chamfer::execute(void)
return new App::DocumentObjectExecReturn("Resulting shape is null");
ShapeHistory history = buildHistory(mkChamfer, TopAbs_FACE, shape, base->Shape.getValue());
this->Shape.setValue(shape);

// make sure the 'PropertyShapeHistory' is not safed in undo/redo (#0001889)
PropertyShapeHistory prop;
prop.setContainer(this);
prop.setValue(history);
prop.setContainer(this);
prop.touch();

return App::DocumentObject::StdReturn;
}
catch (Standard_Failure) {
Expand Down
6 changes: 5 additions & 1 deletion src/Mod/Part/App/FeatureCompound.cpp
Expand Up @@ -86,9 +86,13 @@ App::DocumentObjectExecReturn *Compound::execute(void)
}

this->Shape.setValue(comp);

// make sure the 'PropertyShapeHistory' is not safed in undo/redo (#0001889)
PropertyShapeHistory prop;
prop.setContainer(this);
prop.setValues(history);
prop.setContainer(this);
prop.touch();

return App::DocumentObject::StdReturn;
}
catch (Standard_Failure) {
Expand Down
6 changes: 5 additions & 1 deletion src/Mod/Part/App/FeatureFillet.cpp
Expand Up @@ -76,9 +76,13 @@ App::DocumentObjectExecReturn *Fillet::execute(void)
return new App::DocumentObjectExecReturn("Resulting shape is null");
ShapeHistory history = buildHistory(mkFillet, TopAbs_FACE, shape, base->Shape.getValue());
this->Shape.setValue(shape);

// make sure the 'PropertyShapeHistory' is not safed in undo/redo (#0001889)
PropertyShapeHistory prop;
prop.setContainer(this);
prop.setValue(history);
prop.setContainer(this);
prop.touch();

return App::DocumentObject::StdReturn;
}
catch (Standard_Failure) {
Expand Down

0 comments on commit f3af41e

Please sign in to comment.