diff --git a/src/modules/ForcePlatforms.cpp b/src/modules/ForcePlatforms.cpp index 7b91652b..8a2d5974 100644 --- a/src/modules/ForcePlatforms.cpp +++ b/src/modules/ForcePlatforms.cpp @@ -157,11 +157,12 @@ void ezc3d::Modules::ForcePlatform::extractType( } else if (_type == 3){ - const auto& copPoly = c3d.parameters().group("FORCE_PLATFORM").parameter("FPCOPPOLY").valuesAsDouble(); - if (copPoly.size() != 0){ - _type3copPoly = std::vector(copPoly.begin() + idx * 12, copPoly.begin() + (idx + 1) * 12); - } else { - _type3copPoly = std::vector(12); + _type3copPoly = std::vector(12); + if (c3d.parameters().group("FORCE_PLATFORM").isParameter("FPCOPPOLY")){ + const auto& copPoly = c3d.parameters().group("FORCE_PLATFORM").parameter("FPCOPPOLY").valuesAsDouble(); + if (copPoly.size() != 0){ + _type3copPoly = std::vector(copPoly.begin() + idx * 12, copPoly.begin() + (idx + 1) * 12); + } } } else if (_type == 5){