ShapeBinder: fix Null shape on recompute for copy
This commit is contained in:
parent
e88b042a26
commit
7cd20adc9a
|
@ -65,8 +65,11 @@ App::DocumentObjectExecReturn* ShapeBinder::execute(void) {
|
|||
std::vector<std::string> subs;
|
||||
|
||||
ShapeBinder::getFilterdReferences(&Support, obj, subs);
|
||||
Shape.setValue(ShapeBinder::buildShapeFromReferences(obj, subs)._Shape);
|
||||
Placement.setValue(obj->Placement.getValue());
|
||||
//if we have a link we rebuild the shape, but we change nothing if we are a simple copy
|
||||
if(obj) {
|
||||
Shape.setValue(ShapeBinder::buildShapeFromReferences(obj, subs)._Shape);
|
||||
Placement.setValue(obj->Placement.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
return Part::Feature::execute();
|
||||
|
|
Loading…
Reference in New Issue
Block a user