Changed function signature to take in rig node pointer reference instead of r value ptr
This commit is contained in:
parent
c0de2d4705
commit
190665bbbf
|
@ -153,7 +153,7 @@ namespace SHADE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHModelLoader::ReadRigTree(FileReference file, SHRigDataHeader const& header, SHRigNode* root)
|
void SHModelLoader::ReadRigTree(FileReference file, SHRigDataHeader const& header, SHRigNode*& root)
|
||||||
{
|
{
|
||||||
// Read All nodes into one contiguous data block
|
// Read All nodes into one contiguous data block
|
||||||
struct NodeTemp
|
struct NodeTemp
|
||||||
|
@ -193,6 +193,8 @@ namespace SHADE
|
||||||
nodeQueue.emplace(depthPtr++, depthTempPtr++);
|
nodeQueue.emplace(depthPtr++, depthTempPtr++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete[] dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHModelLoader::ReadMeshData(FileReference file, std::vector<SHMeshDataHeader> const& headers,
|
void SHModelLoader::ReadMeshData(FileReference file, std::vector<SHMeshDataHeader> const& headers,
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace SHADE
|
||||||
|
|
||||||
void ReadRigHeader(FileReference file, SHRigDataHeader& header);
|
void ReadRigHeader(FileReference file, SHRigDataHeader& header);
|
||||||
void ReadRigData(FileReference file, SHRigDataHeader const& header, std::vector<SHRigNodeData>& data);
|
void ReadRigData(FileReference file, SHRigDataHeader const& header, std::vector<SHRigNodeData>& data);
|
||||||
void ReadRigTree(FileReference file, SHRigDataHeader const& header, SHRigNode* root);
|
void ReadRigTree(FileReference file, SHRigDataHeader const& header, SHRigNode*& root);
|
||||||
|
|
||||||
void ReadMeshData(FileReference file, std::vector<SHMeshDataHeader> const& headers, std::vector<SHMeshAsset*>& meshes);
|
void ReadMeshData(FileReference file, std::vector<SHMeshDataHeader> const& headers, std::vector<SHMeshAsset*>& meshes);
|
||||||
void ReadAnimData(FileReference file, std::vector<SHAnimDataHeader> const& headers, std::vector<SHAnimAsset*>& anims);
|
void ReadAnimData(FileReference file, std::vector<SHAnimDataHeader> const& headers, std::vector<SHAnimAsset*>& anims);
|
||||||
|
|
Loading…
Reference in New Issue