History

obj reader sort-of works

Seth Alves committed 11 years ago

Commit 858d15d1 parent 7a297747 files · +233 −41Browse files

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

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+2−0
@@ -2101,6 +2101,8 @@ void GeometryReader::run() { · 2100 unmodified lines
21012101 lightmapLevel = 3.5f;
21022102 }
21032103 fbxgeo = readFBX(_reply, _mapping, grabLightmaps, lightmapLevel);
2104+ } else if (_url.path().toLower().endsWith(".obj")) {
2105+ fbxgeo = readOBJ(_reply, _mapping);
21042106 }
21052107 QMetaObject::invokeMethod(geometry.data(), "setGeometry", Q_ARG(const FBXGeometry&, fbxgeo));
21062108 } else {