Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -67,7 +67,7 @@ OffsetWidget::OffsetWidget(Part::Offset* offset, QWidget* parent)
|
||||
d->ui.spinOffset->setSingleStep(0.1);
|
||||
d->ui.facesButton->hide();
|
||||
|
||||
bool is_2d = d->offset->isDerivedFrom(Part::Offset2D::getClassTypeId());
|
||||
bool is_2d = d->offset->isDerivedFrom<Part::Offset2D>();
|
||||
d->ui.selfIntersection->setVisible(!is_2d);
|
||||
if(is_2d)
|
||||
d->ui.modeType->removeItem(2);//remove Recto-Verso mode, not supported by 2d offset
|
||||
|
||||
Reference in New Issue
Block a user