diff --git a/src/Mod/Part/App/BodyBase.cpp b/src/Mod/Part/App/BodyBase.cpp index 04267f4b5f..91c1d7b591 100644 --- a/src/Mod/Part/App/BodyBase.cpp +++ b/src/Mod/Part/App/BodyBase.cpp @@ -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); } diff --git a/src/Mod/Part/App/BodyBase.h b/src/Mod/Part/App/BodyBase.h index caed513cd2..d068f8d191 100644 --- a/src/Mod/Part/App/BodyBase.h +++ b/src/Mod/Part/App/BodyBase.h @@ -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 getFullModel () { std::vector rv;