[PartDesign] Add Material property to Body
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user