Replaced offsetof by BLI_STRUCT_OFFSET.

This commit is contained in:
Tamito Kajiyama
2010-07-20 17:38:09 +00:00
parent 6d35f6110a
commit 472491d8d9

View File

@@ -382,7 +382,7 @@ extern "C" {
sprintf(lineset->name, "LineSet %i", lineset_index+1);
else
strcpy(lineset->name, "LineSet");
BLI_uniquename(&config->linesets, lineset, "FreestyleLineSet", '.', offsetof(FreestyleLineSet, name), sizeof(lineset->name));
BLI_uniquename(&config->linesets, lineset, "FreestyleLineSet", '.', BLI_STRUCT_OFFSET(FreestyleLineSet, name), sizeof(lineset->name));
}
void FRS_delete_active_lineset(FreestyleConfig *config)