Mod: Use new addObject<T>(...) using regex
This commit is contained in:
@@ -327,8 +327,7 @@ void CrossSections::apply()
|
||||
App::Document* doc = it->getDocument();
|
||||
std::string s = it->getNameInDocument();
|
||||
s += "_cs";
|
||||
Part::Feature* section =
|
||||
static_cast<Part::Feature*>(doc->addObject("Part::Feature", s.c_str()));
|
||||
Part::Feature* section = doc->addObject<Part::Feature>(s.c_str());
|
||||
section->Shape.setValue(comp);
|
||||
section->purgeTouched();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user