| 117 | minTime = std::numeric_limits<float>::max(); |
| 118 | maxTime = std::numeric_limits<float>::min(); |
| 119 | BOOST_FOREACH(const Mesh *mesh, meshes) { |
| 120 | const MotionTriangleMesh *mtm = dynamic_cast<const MotionTriangleMesh *>(mesh); |
| 121 | |
| 122 | if (mtm) { |
| 123 | minTime = Min(minTime, mtm->GetMotionSystem().StartTime()); |
| 124 | maxTime = Max(maxTime, mtm->GetMotionSystem().EndTime()); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | if ((minTime == std::numeric_limits<float>::max()) || |
| 129 | (maxTime == std::numeric_limits<float>::min())) { |
no test coverage detected