From f85478155b57e681aa6526ae482a75623233e4f8 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 4 Mar 2021 18:50:57 +0100 Subject: [PATCH] Revert "[PartDesign] Add Material property to Body" This reverts commit 4fcf8f199cf0c14f7a561d560415c5b7b83bbb30. There is no need to make this a static property because it can be added at runtime via Python or the GUI --- src/Mod/Part/App/BodyBase.cpp | 1 - src/Mod/Part/App/BodyBase.h | 8 -------- 2 files changed, 9 deletions(-) diff --git a/src/Mod/Part/App/BodyBase.cpp b/src/Mod/Part/App/BodyBase.cpp index 91c1d7b591..04267f4b5f 100644 --- a/src/Mod/Part/App/BodyBase.cpp +++ b/src/Mod/Part/App/BodyBase.cpp @@ -44,7 +44,6 @@ 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 d068f8d191..caed513cd2 100644 --- a/src/Mod/Part/App/BodyBase.h +++ b/src/Mod/Part/App/BodyBase.h @@ -57,14 +57,6 @@ 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;