Fix setup of embedded texture loading

This commit is contained in:
Kim Kulling
2021-08-28 13:33:25 +02:00
parent 4b1ff645e3
commit 3e090b21f5
3 changed files with 19 additions and 7 deletions
+2 -1
View File
@@ -493,7 +493,8 @@ void XmlSerializer::StoreEmbeddedTexture(EmbeddedTexture *tex) {
aiString s;
s.Set(ai_to_string(tex->mId).c_str());
mat->AddProperty(&s, AI_MATKEY_NAME);
s.Set(tex->mPath);
const std::string name = "*" + tex->mPath;
s.Set(name);
mat->AddProperty(&s, AI_MATKEY_TEXTURE_DIFFUSE(0));
aiColor3D col;