Part: modernize type checking
This commit is contained in:
@@ -59,7 +59,7 @@ std::vector<App::DocumentObject*> ViewProviderRuledSurface::claimChildren() cons
|
||||
void ViewProviderRuledSurface::updateData(const App::Property* prop)
|
||||
{
|
||||
PartGui::ViewProviderPart::updateData(prop);
|
||||
if (prop->getTypeId() == Part::PropertyShapeHistory::getClassTypeId()) {
|
||||
if (prop->is<Part::PropertyShapeHistory>()) {
|
||||
//const std::vector<Part::ShapeHistory>& hist = static_cast<const Part::PropertyShapeHistory*>
|
||||
// (prop)->getValues();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user