1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Shift heightfield and water in navigator tests

This commit is contained in:
elsid 2021-11-04 19:48:18 +01:00
parent e2c896e4ce
commit e10bbb9ad7
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40
3 changed files with 448 additions and 416 deletions

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@ namespace testing
template <>
inline testing::Message& Message::operator <<(const osg::Vec3f& value)
{
return (*this) << "osg::Vec3f(" << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.x()
return (*this) << "Vec3fEq(" << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.x()
<< ", " << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.y()
<< ", " << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.z()
<< ')';

View File

@ -357,6 +357,7 @@ namespace
rcPolyMeshDetail& polyMeshDetail)
{
rcCompactHeightfield compact;
compact.dist = nullptr;
buildCompactHeightfield(context, config.walkableHeight, config.walkableClimb, solid, compact);
erodeWalkableArea(context, config.walkableRadius, compact);