Commit 171a8db4 authored by jriegel's avatar jriegel
Browse files

Deactivate Nesting of Transform features

parent 546ab0fe
......@@ -60,19 +60,19 @@ bool ViewProviderMultiTransform::setEdit(int ModNum)
}
}
std::vector<App::DocumentObject*> ViewProviderMultiTransform::claimChildren(void) const
{
std::vector<App::DocumentObject*> result = ViewProviderTransformed::claimChildren();
PartDesign::MultiTransform* pcMultiTransform = static_cast<PartDesign::MultiTransform*>(getObject());
if (pcMultiTransform == NULL)
return std::vector<App::DocumentObject*>(); // TODO: Show error?
std::vector<App::DocumentObject*> transformFeatures = pcMultiTransform->Transformations.getValues();
result.insert(result.end(), transformFeatures.begin(), transformFeatures.end());
return result;
}
//std::vector<App::DocumentObject*> ViewProviderMultiTransform::claimChildren(void) const
//{
// std::vector<App::DocumentObject*> result = ViewProviderTransformed::claimChildren();
//
// PartDesign::MultiTransform* pcMultiTransform = static_cast<PartDesign::MultiTransform*>(getObject());
// if (pcMultiTransform == NULL)
// return std::vector<App::DocumentObject*>(); // TODO: Show error?
//
// std::vector<App::DocumentObject*> transformFeatures = pcMultiTransform->Transformations.getValues();
//
// result.insert(result.end(), transformFeatures.begin(), transformFeatures.end());
// return result;
//}
bool ViewProviderMultiTransform::onDelete(const std::vector<std::string> &svec) {
// Delete the transformation features
......
......@@ -35,7 +35,7 @@ public:
ViewProviderMultiTransform()
{ featureName = std::string("MultiTransform"); }
std::vector<App::DocumentObject*> claimChildren(void) const;
//std::vector<App::DocumentObject*> claimChildren(void) const;
virtual bool onDelete(const std::vector<std::string> &);
......
......@@ -38,16 +38,16 @@ using namespace PartDesignGui;
PROPERTY_SOURCE(PartDesignGui::ViewProviderTransformed,PartDesignGui::ViewProvider)
std::vector<App::DocumentObject*> ViewProviderTransformed::claimChildren(void)const
{
PartDesign::Transformed* pcTransformed = static_cast<PartDesign::Transformed*>(getObject());
if (pcTransformed == NULL)
return std::vector<App::DocumentObject*>(); // TODO: Show error?
std::vector<App::DocumentObject*> originals = pcTransformed->Originals.getValues();
return originals;
}
//std::vector<App::DocumentObject*> ViewProviderTransformed::claimChildren(void)const
//{
// PartDesign::Transformed* pcTransformed = static_cast<PartDesign::Transformed*>(getObject());
// if (pcTransformed == NULL)
// return std::vector<App::DocumentObject*>(); // TODO: Show error?
//
// std::vector<App::DocumentObject*> originals = pcTransformed->Originals.getValues();
//
// return originals;
//}
void ViewProviderTransformed::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
......
......@@ -43,7 +43,7 @@ public:
{}
/// grouping handling
std::vector<App::DocumentObject*> claimChildren(void) const;
//std::vector<App::DocumentObject*> claimChildren(void) const;
void setupContextMenu(QMenu*, QObject*, const char*);
virtual bool onDelete(const std::vector<std::string> &);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment