mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 20:40:35 +00:00
Merge pull request #1660 from Azaezel/knockOffKnotNetleak
suppresses a leak potentially caused by Knot::mType||Knot::mPath entr…
This commit is contained in:
commit
387e28a1e0
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)
|
||||
{
|
||||
mPosition = k.mPosition;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue