[PartDesign] Fix spelling of auxiliary and curvilinear…
…but also handle the properties name change from old files
This commit is contained in:
@@ -504,7 +504,7 @@ bool isFeatureMovable(App::DocumentObject* const feat)
|
||||
}
|
||||
}
|
||||
|
||||
if (auto prop = dynamic_cast<App::PropertyLinkSub*>(prim->getPropertyByName("AuxillerySpine"))) {
|
||||
if (auto prop = dynamic_cast<App::PropertyLinkSub*>(prim->getPropertyByName("AuxiliarySpine"))) {
|
||||
App::DocumentObject* auxSpine = prop->getValue();
|
||||
if (auxSpine && !isFeatureMovable(auxSpine)) {
|
||||
return false;
|
||||
@@ -557,7 +557,7 @@ std::vector<App::DocumentObject*> collectMovableDependencies(std::vector<App::Do
|
||||
unique_objs.insert(axis);
|
||||
}
|
||||
}
|
||||
if (auto prop = dynamic_cast<App::PropertyLinkSub*>(prim->getPropertyByName("AuxillerySpine"))) {
|
||||
if (auto prop = dynamic_cast<App::PropertyLinkSub*>(prim->getPropertyByName("AuxiliarySpine"))) {
|
||||
App::DocumentObject* axis = prop->getValue();
|
||||
if (axis && !axis->isDerivedFrom<App::DatumElement>()){
|
||||
unique_objs.insert(axis);
|
||||
|
||||
Reference in New Issue
Block a user