Mod: Use new addObject<T>(...) using regex
This commit is contained in:
@@ -1452,8 +1452,7 @@ void Area::showShape(const TopoDS_Shape& shape, const char* name, const char* fm
|
||||
va_end(args);
|
||||
name = buf;
|
||||
}
|
||||
Part::Feature* pcFeature =
|
||||
static_cast<Part::Feature*>(pcDoc->addObject("Part::Feature", name));
|
||||
Part::Feature* pcFeature = pcDoc->addObject<Part::Feature>(name);
|
||||
pcFeature->Shape.setValue(shape);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user