fix init of aiString
parent
0be78e0ca3
commit
608e3102a0
|
@ -57,7 +57,7 @@ SkeletonMeshBuilder::SkeletonMeshBuilder(aiScene *pScene, aiNode *root, bool bKn
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!root) {
|
if (nullptr != root) {
|
||||||
root = pScene->mRootNode;
|
root = pScene->mRootNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,8 @@ aiMaterial *SkeletonMeshBuilder::CreateMaterial() {
|
||||||
aiMaterial *matHelper = new aiMaterial;
|
aiMaterial *matHelper = new aiMaterial;
|
||||||
|
|
||||||
// Name
|
// Name
|
||||||
aiString matName(std::string("SkeletonMaterial"));
|
aiString matName;
|
||||||
|
matName.Set(std::string("SkeletonMaterial"));
|
||||||
matHelper->AddProperty(&matName, AI_MATKEY_NAME);
|
matHelper->AddProperty(&matName, AI_MATKEY_NAME);
|
||||||
aiString matName("SkeletonMaterial");
|
aiString matName("SkeletonMaterial");
|
||||||
matHelper->AddProperty( &matName, AI_MATKEY_NAME);
|
matHelper->AddProperty( &matName, AI_MATKEY_NAME);
|
||||||
|
|
Loading…
Reference in New Issue