Cosmetic changes

actorid
Nicolay Korslund 15 years ago
parent 31d971e076
commit 14b91fb271

@ -164,5 +164,13 @@ void NIFLoader::loadResource(Resource *resource)
MeshPtr NIFLoader::load(const char* name, const char* group)
{
MeshManager *m = MeshManager::getSingletonPtr();
// Check if the resource already exists
ResourcePtr ptr = m->getByName(name/*, group*/);
if(!ptr.isNull())
return MeshPtr(ptr);
// Nope, create a new one.
return MeshManager::getSingleton().createManual(name, group, &g_sing);
}

@ -75,6 +75,7 @@ int main(int argc, char**args)
// Insert the mesh
const char* mesh = "meshes\\a\\towershield_steel.nif";
NIFLoader::load(mesh);
NIFLoader::load(mesh);
// Display it
SceneNode *node = mgr->getRootSceneNode()->createChildSceneNode("node");

Loading…
Cancel
Save