- if(obj.technique && !obj.main_texture)
- obj.main_texture=obj.technique->get_main_texture();
- for(unsigned i=0; i<obj.textures.size(); ++i)
- {
- if(!obj.textures[i])
- {
- obj.textures[i]=obj.technique->get_texture(i);
- if(!obj.textures[i])
- throw Exception("Object does not specify all textures required by Technique");
- }
- }
+ add("mesh", &Loader::mesh_inline);
+ add("mesh", &Loader::mesh_inline_lod);
+ add("mesh", &Loader::mesh);
+ add("mesh", &Loader::mesh_lod);
+ add("technique", &Loader::technique_inline);
+ add("technique", &Loader::technique);
+
+ // Deprecated alias, will be removed
+ add("lod_mesh", &Loader::mesh_lod);