setskin() fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7206 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1233,7 +1233,8 @@ struct vertmodel : model
|
||||
|
||||
void setskin(int tex = 0)
|
||||
{
|
||||
if(parts.length()!=1 || parts[0]->meshes.length()!=1) return;
|
||||
//if(parts.length()!=1 || parts[0]->meshes.length()!=1) return;
|
||||
if(parts.length() < 1 || parts[0]->meshes.length() < 1) return;
|
||||
mesh &m = *parts[0]->meshes[0];
|
||||
m.tex = tex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user