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:
David Carter
2024-10-21 10:04:55 -04:00
committed by Yorik van Havre
parent d67bb37bc7
commit e4bf988db2
14 changed files with 96 additions and 22 deletions

View File

@@ -136,6 +136,7 @@ App::DocumentObjectExecReturn* Boolean::execute()
res = res.makeElementRefine();
}
this->Shape.setValue(res);
copyMaterial(base);
return Part::Feature::execute();
}
catch (...) {