Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3121 in orxonox.OLD


Ignore:
Timestamp:
Dec 7, 2004, 12:54:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/images: Group-Name-fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/object.cc

    r3120 r3121  
    219219  if (verbose >= 2)
    220220    printf("Adding new Group\n");
    221   group->name = NULL;
     221  group->name = "";
    222222  group->faceMode = -1;
    223223  group->faceCount = 0; 
     
    454454  if (verbose >=3)
    455455    printf ("Read Group: %s.\n", groupString);
    456   // setting the group name if not default.
    457   if (strcmp(currentGroup->name, "default"))
    458     {
    459       currentGroup->name = new char [strlen(groupString)+1];
    460       strcpy(currentGroup->name, groupString);
    461     }
    462456  if (groupCount != 0 && currentGroup->faceCount>0)
    463457    {
     
    465459      currentGroup = currentGroup->next = new Group;
    466460      initGroup(currentGroup);
     461    }
     462  // setting the group name if not default.
     463  if (strcmp(groupString, "default"))
     464    {
     465      currentGroup->name = new char [strlen(groupString)+1];
     466      strcpy(currentGroup->name, groupString);
    467467    }
    468468  ++groupCount;
Note: See TracChangeset for help on using the changeset viewer.