Mod: Use new addObject<T>(...) using regex
This commit is contained in:
@@ -1575,7 +1575,7 @@ Feature* Feature::create(const TopoShape& shape, const char* name, App::Document
|
||||
document = App::GetApplication().newDocument();
|
||||
}
|
||||
}
|
||||
auto res = static_cast<Part::Feature*>(document->addObject("Part::Feature", name));
|
||||
auto res = document->addObject<Part::Feature>(name);
|
||||
res->Shape.setValue(shape);
|
||||
res->purgeTouched();
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user