Browse Source

Take object scale into account.

Daniel Buckmaster 10 years ago
parent
commit
37159bf9ad
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Engine/source/navigation/recastPolyList.cpp

+ 1 - 0
Engine/source/navigation/recastPolyList.cpp

@@ -78,6 +78,7 @@ U32 RecastPolyList::addPoint(const Point3F &p)
       verts = newverts;
    }
    Point3F v = p;
+   v.convolve(mScale);
    mMatrix.mulP(v);
    // Insert the new vertex.
    verts[nverts*3] = v.x;