suppresses a leak potentially caused by Knot::mType||Knot::mPath entries.

This commit is contained in:
Azaezel 2016-06-21 20:53:08 -05:00
parent 963ef1ecdb
commit a0dc2adff8
2 changed files with 11 additions and 1 deletions

View file

@ -29,6 +29,16 @@
//-----------------------------------------------------------------------------
CameraSpline::Knot::Knot()
{
mPosition = Point3F::Zero;
mRotation = QuatF::Identity;
mSpeed = 0.0f;
mType = NORMAL;
mPath = SPLINE;
prev = NULL; next = NULL;
};
CameraSpline::Knot::Knot(const Knot &k)
{
mPosition = k.mPosition;

View file

@ -54,7 +54,7 @@ public:
Knot *prev;
Knot *next;
Knot() {};
Knot();
Knot(const Knot &k);
Knot(const Point3F &p, const QuatF &r, F32 s, Knot::Type type = NORMAL, Knot::Path path = SPLINE);
};