Skip to content

Commit

Permalink
fix: search for triangle index update to work on mac (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Madsen authored Jan 29, 2024
1 parent eeea11e commit 2ed8c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scalismo/io/ply/PLYHelpers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ object PLYHelpers {
}

def getFacePropertyIndex(items: Seq[PLYProperty]): PropertyFaceIndexes = {
val faceIndex: Option[Int] = VERTEX_INDEX_PROPERTY_NAMES.collectFirst { f =>
val faceIndex: Option[Int] = VERTEX_INDEX_PROPERTY_NAMES.flatMap { f =>
getPropertyIndex(items, f)
}.flatten
}.headOption
PropertyFaceIndexes(faceIndex)
}

Expand Down

0 comments on commit 2ed8c7e

Please sign in to comment.