Commit 2cc415ac authored by Cresson Remi's avatar Cresson Remi
Browse files

ADD: fix the HasField() call

2 merge requests!45Release 3.2.1,!43FIX: sampler bug (wrong geometries count)
Pipeline #36458 failed with stages
in 74 minutes and 41 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -179,7 +179,7 @@ TensorflowSampler<TInputImage, TVectorData>::Update() ...@@ -179,7 +179,7 @@ TensorflowSampler<TInputImage, TVectorData>::Update()
if (!itVector.Get()->IsRoot() && !itVector.Get()->IsDocument() && !itVector.Get()->IsFolder()) if (!itVector.Get()->IsRoot() && !itVector.Get()->IsDocument() && !itVector.Get()->IsFolder())
{ {
DataNodePointer currentGeometry = itVector.Get(); DataNodePointer currentGeometry = itVector.Get();
if (!currentGeometry->HasField(m_Field)) if (currentGeometry->HasField(m_Field))
{ {
PointType point = currentGeometry->GetPoint(); PointType point = currentGeometry->GetPoint();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment