+ fixes #0001889: Crash when undoing move of base object of a part fillet
This commit is contained in:
parent
2680395ede
commit
f545455466
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user