History

Added fileOnUrl to check if a texture exist at the location. It return the correct filename of where the texture lives. Added the url of the fix file to extractFBXGeometry and readFBX and updated the calls to readFBX to include the url of the fix file.

So it now does not break existing content. Found a second place in the FBXReader.cpp where the RelativeFileName stripped out the dir location.

Marcel Verhagen committed 11 years ago

Commit 8f0893b1 parent fac497d6 files · +29 −14Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 6 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+1−1
@@ -2185,7 +2185,7 @@ void GeometryReader::run() { · 2184 unmodified lines
2185 } else if (_url.path().toLower().endsWith("palaceoforinthilian4.fbx")) {2185 } else if (_url.path().toLower().endsWith("palaceoforinthilian4.fbx")) {
2186 lightmapLevel = 3.5f;2186 lightmapLevel = 3.5f;
2187 }2187 }
2188 fbxgeo = readFBX(_reply, _mapping, grabLightmaps, lightmapLevel);2188 fbxgeo = readFBX(_reply, _mapping, _url.path(), grabLightmaps, lightmapLevel);
2189 } else if (_url.path().toLower().endsWith(".obj")) {2189 } else if (_url.path().toLower().endsWith(".obj")) {
2190 fbxgeo = OBJReader().readOBJ(_reply, _mapping, &_url);2190 fbxgeo = OBJReader().readOBJ(_reply, _mapping, &_url);
2191 }2191 }