mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
readable models via the new reader (verts, faces, bones...)
This commit is contained in:
@@ -34,13 +34,24 @@ namespace vb01{
|
||||
}
|
||||
}
|
||||
|
||||
int getCharId(char ch){
|
||||
int getCharId(string line, char ch, bool reverse){
|
||||
int charId = -1;
|
||||
for(int i = 0; i < line.length(); i++)
|
||||
if(line[i] == ch){
|
||||
colonId = i;
|
||||
break;
|
||||
if(!reverse){
|
||||
for(int i = 0; i < line.length(); i++){
|
||||
if(line[i] == ch){
|
||||
charId = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
for(int i = line.length() - 1; i >= 0; i--){
|
||||
if(line[i] == ch){
|
||||
charId = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return charId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user