PartDesign: modernize type checking
This commit is contained in:
@@ -66,7 +66,7 @@ short DressUp::mustExecute() const
|
||||
void DressUp::positionByBaseFeature()
|
||||
{
|
||||
Part::Feature *base = static_cast<Part::Feature*>(BaseFeature.getValue());
|
||||
if (base && base->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId()))
|
||||
if (base && base->isDerivedFrom<Part::Feature>())
|
||||
this->Placement.setValue(base->Placement.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user