mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
suppresses a leak potentially caused by Knot::mType||Knot::mPath entries.
This commit is contained in:
parent
963ef1ecdb
commit
a0dc2adff8
2 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
CameraSpline::Knot::Knot(const Knot &k)
|
||||||
{
|
{
|
||||||
mPosition = k.mPosition;
|
mPosition = k.mPosition;
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public:
|
||||||
Knot *prev;
|
Knot *prev;
|
||||||
Knot *next;
|
Knot *next;
|
||||||
|
|
||||||
Knot() {};
|
Knot();
|
||||||
Knot(const Knot &k);
|
Knot(const Knot &k);
|
||||||
Knot(const Point3F &p, const QuatF &r, F32 s, Knot::Type type = NORMAL, Knot::Path path = SPLINE);
|
Knot(const Point3F &p, const QuatF &r, F32 s, Knot::Type type = NORMAL, Knot::Path path = SPLINE);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue