Changeset 3121 in orxonox.OLD for orxonox/branches/images/importer
- Timestamp:
- Dec 7, 2004, 12:54:31 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/object.cc
r3120 r3121 219 219 if (verbose >= 2) 220 220 printf("Adding new Group\n"); 221 group->name = NULL;221 group->name = ""; 222 222 group->faceMode = -1; 223 223 group->faceCount = 0; … … 454 454 if (verbose >=3) 455 455 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 }462 456 if (groupCount != 0 && currentGroup->faceCount>0) 463 457 { … … 465 459 currentGroup = currentGroup->next = new Group; 466 460 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); 467 467 } 468 468 ++groupCount;
Note: See TracChangeset
for help on using the changeset viewer.