mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
fix for loop range (occ is 1-based)
This commit is contained in:
parent
928cb57448
commit
b99b107bbc
@ -2018,7 +2018,7 @@ namespace netgen
|
||||
|
||||
// load names
|
||||
Standard_Integer nb = model->NbEntities();
|
||||
for (Standard_Integer i = 1; i < nb; i++)
|
||||
for (Standard_Integer i = 1; i <= nb; i++)
|
||||
{
|
||||
Handle(Standard_Transient) entity = model->Value(i);
|
||||
auto item = Handle(StepRepr_RepresentationItem)::DownCast(entity);
|
||||
@ -2036,7 +2036,7 @@ namespace netgen
|
||||
|
||||
|
||||
// load custom data (maxh etc.)
|
||||
for (Standard_Integer i = 1; i < nb; i++)
|
||||
for (Standard_Integer i = 1; i <= nb; i++)
|
||||
{
|
||||
Handle(Standard_Transient) entity = model->Value(i);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user