Mod: Use new addObject<T>(...) using regex
This commit is contained in:
@@ -414,8 +414,7 @@ private:
|
||||
pcDoc = App::GetApplication().newDocument();
|
||||
}
|
||||
PointsPy* pPoints = static_cast<PointsPy*>(pcObj);
|
||||
Points::Feature* pcFeature =
|
||||
static_cast<Points::Feature*>(pcDoc->addObject("Points::Feature", name));
|
||||
Points::Feature* pcFeature = pcDoc->addObject<Points::Feature>(name);
|
||||
// copy the data
|
||||
pcFeature->Points.setValue(*(pPoints->getPointKernelPtr()));
|
||||
return Py::asObject(pcFeature->getPyObject());
|
||||
|
||||
Reference in New Issue
Block a user