diff --git a/Sofa/Component/Playback/src/sofa/component/playback/CompareState.cpp b/Sofa/Component/Playback/src/sofa/component/playback/CompareState.cpp index 989ea02d5bb..59937d80d3e 100644 --- a/Sofa/Component/Playback/src/sofa/component/playback/CompareState.cpp +++ b/Sofa/Component/Playback/src/sofa/component/playback/CompareState.cpp @@ -171,6 +171,12 @@ void CompareState::processCompareState() } } + if (validLines.empty()) // No references found, we need to notify that this is not a correct result + { + totalError_X = std::numeric_limits::max(); + totalError_V = std::numeric_limits::max(); + } + msg_info() << "totalError_X = " << totalError_X << ", totalError_V = " << totalError_V; }