PartDesign: Primitives are attachable directly
With the recently introduced AttachExtension the PartDesign primitives can be attachable by themself and don't need anymore the helping coordinate system datum. This simplyfies the code and the TreeView largely
This commit is contained in:
@@ -121,13 +121,6 @@ void ViewProviderPrimitive::updateData(const App::Property* p) {
|
||||
PartDesignGui::ViewProviderAddSub::updateData(p);
|
||||
}
|
||||
|
||||
std::vector< App::DocumentObject* > ViewProviderPrimitive::claimChildren(void) const {
|
||||
std::vector< App::DocumentObject* > vec;
|
||||
vec.push_back(static_cast<PartDesign::FeaturePrimitive*>(getObject())->CoordinateSystem.getValue());
|
||||
|
||||
return vec;
|
||||
}
|
||||
|
||||
QIcon ViewProviderPrimitive::getIcon(void) const {
|
||||
|
||||
QString str = QString::fromLatin1("PartDesign_");
|
||||
|
||||
Reference in New Issue
Block a user