mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix behavior if not each segment has a bcname
This commit is contained in:
parent
9d0ffac0eb
commit
2754e8705e
@ -86,10 +86,8 @@ DLL_HEADER void ExportGeom2d(py::module &m)
|
||||
else if (py::extract<string>(bc).check())
|
||||
{
|
||||
string bcname = py::extract<string>(bc)();
|
||||
int bcnum = self.GetBCNumber(bcname);
|
||||
if (bcnum == 0)
|
||||
bcnum = self.AddBCName(bcname);
|
||||
seg->bc = bcnum;
|
||||
seg->bc = self.GetNSplines()+1;
|
||||
self.SetBCName(seg->bc, bcname);
|
||||
}
|
||||
else
|
||||
seg->bc = self.GetNSplines()+1;
|
||||
|
Loading…
Reference in New Issue
Block a user