]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.cpp
Support for loading materials from datafiles
[libs/gl.git] / source / object.cpp
index 3ba2d64c378862ea435f6d371cc4e5ec122a5579..19abe36b766c9f650644824c967060847f6a7b38 100644 (file)
@@ -164,11 +164,10 @@ void Object::Loader::lod_mesh(unsigned l, const string &n)
 
 void Object::Loader::material_inline()
 {
-       throw Exception("material_inline not supported yet");
-       /*RefPtr<Material> mat=new Material;
+       RefPtr<Material> mat=new Material;
        load_sub(*mat);
        coll.add(format("%p%p", &obj, mat.get()), mat.get());
-       obj.material=mat.release();*/
+       obj.material=mat.release();
 }
 
 void Object::Loader::mesh(const string &n)