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; } diff --git a/examples/Demos/chainAll.scn b/examples/Demos/chainAll.scn index 58e7cc24ff6..e2d57483d9c 100644 --- a/examples/Demos/chainAll.scn +++ b/examples/Demos/chainAll.scn @@ -32,7 +32,7 @@ - + @@ -44,8 +44,8 @@ - - + + @@ -65,7 +65,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -143,7 +143,7 @@ - + @@ -163,7 +163,7 @@ - + @@ -183,7 +183,7 @@ - +