summaryrefslogtreecommitdiff
path: root/cubedbusModel.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'cubedbusModel.c.in')
-rw-r--r--cubedbusModel.c.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/cubedbusModel.c.in b/cubedbusModel.c.in
index 471d213..83b13e5 100644
--- a/cubedbusModel.c.in
+++ b/cubedbusModel.c.in
@@ -343,7 +343,8 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
nNormal++;
else if (!strcmp(tmpType, "vt"))
nTexture++;
- else if (!strcmp(tmpType, "f") || !strcmp(tmpType, "p") || !strcmp(tmpType, "l"))
+ else if (!strcmp(tmpType, "f") || !strcmp(tmpType, "fo") ||
+ !strcmp(tmpType, "p") || !strcmp(tmpType, "l") )
{
while ((tmpType=strsep(&strline, delim))!=NULL) {
nIndices++;
@@ -785,11 +786,12 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
if (loadingMaterial)
updateGroup = TRUE;
}
- else if (!strcmp(tmpType, "f") || !strcmp(tmpType, "p") || !strcmp(tmpType, "l") )
+ else if (!strcmp(tmpType, "f") || !strcmp(tmpType, "fo") ||
+ !strcmp(tmpType, "p") || !strcmp(tmpType, "l") )
{
if (!strcmp(tmpType, "l") )
complexity = 1;
- else if (!strcmp(tmpType, "f"))
+ else if (!strcmp(tmpType, "f") || !strcmp(tmpType, "fo"))
complexity = 2;
char *tmpPtr; /* used to check value of vertex/texture/normal numbers */
@@ -1139,7 +1141,8 @@ cubedbusDeleteModelObject (CubedbusObject *obj)
{
CubedbusModelObject *data=obj->data;
- glDeleteLists (data->dList, 1);
+ if (!data->animation)
+ glDeleteLists (data->dList, 1);
int fc;
for (fc=0; fc<data->fileCounter; fc++) {