[PartDesign] Add Material property to Body

This commit is contained in:
howetuft
2021-03-03 22:08:56 +01:00
committed by wwmayer
parent 232fa56f02
commit 4fcf8f199c
2 changed files with 9 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ BodyBase::BodyBase()
Tip.setScope(App::LinkScope::Child);
ADD_PROPERTY(BaseFeature , (0) );
ADD_PROPERTY_TYPE(Material, (0), 0, App::Prop_None, "The Material for this Part");
App::OriginGroupExtension::initExtension(this);
}

View File

@@ -57,6 +57,14 @@ public:
*/
App::PropertyLink BaseFeature;
/**
* A material card this body is associated with
*
*/
App::PropertyLink Material;
/// Returns all Group objects prepanded by BaseFeature (if any)
std::vector<App::DocumentObject *> getFullModel () {
std::vector<App::DocumentObject *> rv;