|
@@ -1715,14 +1715,14 @@ aiString FBXConverter::GetTexturePath(const Texture *tex) {
|
|
|
bool textureReady = false; //tells if our texture is ready (if it was loaded or if it was found)
|
|
|
unsigned int index=0;
|
|
|
|
|
|
- VideoMap::const_iterator it = textures_converted.find(*media);
|
|
|
+ VideoMap::const_iterator it = textures_converted.find(media);
|
|
|
if (it != textures_converted.end()) {
|
|
|
index = (*it).second;
|
|
|
textureReady = true;
|
|
|
} else {
|
|
|
if (media->ContentLength() > 0) {
|
|
|
index = ConvertVideo(*media);
|
|
|
- textures_converted[*media] = index;
|
|
|
+ textures_converted[media] = index;
|
|
|
textureReady = true;
|
|
|
}
|
|
|
}
|
|
@@ -2221,12 +2221,12 @@ void FBXConverter::SetShadingPropertiesRaw(aiMaterial *out_mat, const PropertyTa
|
|
|
if (media != nullptr && media->ContentLength() > 0) {
|
|
|
unsigned int index;
|
|
|
|
|
|
- VideoMap::const_iterator videoIt = textures_converted.find(*media);
|
|
|
+ VideoMap::const_iterator videoIt = textures_converted.find(media);
|
|
|
if (videoIt != textures_converted.end()) {
|
|
|
index = videoIt->second;
|
|
|
} else {
|
|
|
index = ConvertVideo(*media);
|
|
|
- textures_converted[*media] = index;
|
|
|
+ textures_converted[media] = index;
|
|
|
}
|
|
|
|
|
|
// setup texture reference string (copied from ColladaLoader::FindFilenameForEffectTexture)
|
|
@@ -3493,7 +3493,7 @@ void FBXConverter::ConvertOrphanedEmbeddedTextures() {
|
|
|
if (realTexture) {
|
|
|
const Video *media = realTexture->Media();
|
|
|
unsigned int index = ConvertVideo(*media);
|
|
|
- textures_converted[*media] = index;
|
|
|
+ textures_converted[media] = index;
|
|
|
}
|
|
|
}
|
|
|
}
|