Simplify offset tests

This commit is contained in:
bgbsww
2024-05-16 21:44:12 -04:00
committed by Chris Hennes
parent e9c95b131b
commit 7f4d7a20f1
2 changed files with 7 additions and 29 deletions

View File

@@ -97,7 +97,7 @@ App::DocumentObjectExecReturn *Offset::execute()
if(shape.isNull())
return new App::DocumentObjectExecReturn("Invalid source link");
auto join = static_cast<JoinType>(Join.getValue());
this->Shape.setValue(TopoShape(0, getDocument()->getStringHasher()).makeElementOffset(
this->Shape.setValue(TopoShape(0).makeElementOffset(
shape,offset,tol,inter,self,mode,join,fill ? FillType::fill : FillType::noFill));
#endif
return App::DocumentObject::StdReturn;