support sharing of geometry between Models

This commit is contained in:
Chris Danford
2004-02-08 11:17:03 +00:00
parent 75ef4652db
commit 69769b2c74
4 changed files with 76 additions and 37 deletions
+3 -2
View File
@@ -183,10 +183,11 @@ Actor* MakeActor( RageTextureID ID )
pSprite->Load( ID );
return pSprite;
}
else if( sExt=="txt" )
else if( sExt=="txt" ||
sExt=="model" )
{
Model* pModel = new Model;
pModel->LoadMilkshapeAscii( ID.filename );
pModel->Load( ID.filename );
return pModel;
}
/* Do this last, to avoid the IsADirectory in most cases. */