mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 21:35:24 +00:00
Shift heightfield and water in navigator tests
This commit is contained in:
parent
e2c896e4ce
commit
e10bbb9ad7
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@ namespace testing
|
|||||||
template <>
|
template <>
|
||||||
inline testing::Message& Message::operator <<(const osg::Vec3f& value)
|
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.y()
|
||||||
<< ", " << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.z()
|
<< ", " << std::setprecision(std::numeric_limits<float>::max_exponent10) << value.z()
|
||||||
<< ')';
|
<< ')';
|
||||||
|
@ -357,6 +357,7 @@ namespace
|
|||||||
rcPolyMeshDetail& polyMeshDetail)
|
rcPolyMeshDetail& polyMeshDetail)
|
||||||
{
|
{
|
||||||
rcCompactHeightfield compact;
|
rcCompactHeightfield compact;
|
||||||
|
compact.dist = nullptr;
|
||||||
buildCompactHeightfield(context, config.walkableHeight, config.walkableClimb, solid, compact);
|
buildCompactHeightfield(context, config.walkableHeight, config.walkableClimb, solid, compact);
|
||||||
|
|
||||||
erodeWalkableArea(context, config.walkableRadius, compact);
|
erodeWalkableArea(context, config.walkableRadius, compact);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user