Merge branch 'master' into issue-1219
commit
0c035f131d
|
@ -316,12 +316,10 @@ void glTF2Exporter::GetMatTex(const aiMaterial* mat, Ref<Texture>& texture, aiTe
|
||||||
std::string path = tex.C_Str();
|
std::string path = tex.C_Str();
|
||||||
|
|
||||||
if (path.size() > 0) {
|
if (path.size() > 0) {
|
||||||
if (path[0] != '*') {
|
|
||||||
std::map<std::string, unsigned int>::iterator it = mTexturesByPath.find(path);
|
std::map<std::string, unsigned int>::iterator it = mTexturesByPath.find(path);
|
||||||
if (it != mTexturesByPath.end()) {
|
if (it != mTexturesByPath.end()) {
|
||||||
texture = mAsset->textures.Get(it->second);
|
texture = mAsset->textures.Get(it->second);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!texture) {
|
if (!texture) {
|
||||||
std::string texId = mAsset->FindUniqueID("", "texture");
|
std::string texId = mAsset->FindUniqueID("", "texture");
|
||||||
|
|
Loading…
Reference in New Issue