-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors in article 2020/Skeletal-Animation
#404
Comments
Another one:
|
Wrong method name (Related with previous one):
|
Qualified name is not allowed in method declaration:
|
Same is happening in |
|
|
|
Animation(const std::string& animationPath, Model* model)
{
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(animationPath, aiProcess_Triangulate);
assert(scene && scene->mRootNode);
auto animation = scene->mAnimations[0];
m_Duration = animation->mDuration;
m_TicksPerSecond = animation->mTicksPerSecond;
// Redundant line
aiMatrix4x4 globalTransformation = scene->mRootNode->mTransformation;
// Redundant line
globalTransformation = globalTransformation.Inverse();
ReadHierarchyData(m_RootNode, scene->mRootNode);
ReadMissingBones(animation, *model);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couple of things I've notice:
void ExtractBoneWeightForVertices(std::vector& vertices, aiMesh* mesh, const aiScene* scene)
The first parameter should be:std::vector<Vertex>&
setupMesh
contains couple of minor errors:The text was updated successfully, but these errors were encountered: