BVH: Initialize all members of Node in constructor

pull/1765/head
Turo Lamminen 2018-02-03 17:38:30 +02:00
parent da19ed0b2a
commit cfcaf3e97b
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ class BVHLoader : public BaseImporter
std::vector<ChannelType> mChannels;
std::vector<float> mChannelValues; // motion data values for that node. Of size NumChannels * NumFrames
Node() { }
Node()
: mNode(nullptr)
{ }
explicit Node( const aiNode* pNode) : mNode( pNode) { }
};