Materials: Child ignoring parent material
Inherit the material from the parent object when creating a new object, such as during a boolean operation, or when extruding a sketch. fixes #15503
This commit is contained in:
committed by
Yorik van Havre
parent
5435b3e4db
commit
0804d80ebf
@@ -69,6 +69,10 @@ App::DocumentObjectExecReturn *Compound::execute()
|
||||
}
|
||||
}
|
||||
this->Shape.setValue(TopoShape().makeElementCompound(shapes));
|
||||
if (Links.getSize() > 0) {
|
||||
App::DocumentObject* link = Links.getValues()[0];
|
||||
copyMaterial(link);
|
||||
}
|
||||
return Part::Feature::execute();
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
Reference in New Issue
Block a user