Fixed segmentation fault in PartDesign workbench

Closes #9382.
This commit is contained in:
xtemp09
2023-04-26 18:56:53 +07:00
committed by Adrián Insaurralde Avalos
parent 35b0ea71f9
commit d21d4c89cb

View File

@@ -438,6 +438,9 @@ void relinkToBody (PartDesign::Feature *feature) {
bool isFeatureMovable(App::DocumentObject* const feat)
{
if (!feat)
return false;
if (feat->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId())) {
auto prim = static_cast<PartDesign::Feature*>(feat);
App::DocumentObject* bf = prim->BaseFeature.getValue();