diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-20 21:38:09 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-20 21:38:09 +0400 |
commit | 472491d8d9e69e9920a191d93ffbf77fabab6a91 (patch) | |
tree | 3256ba6f9aca6122c94548a85ebcdb3620231fc0 /source | |
parent | 6d35f6110a6893c287d6ab45b6f8a25ecbbf5b20 (diff) |
Replaced offsetof by BLI_STRUCT_OFFSET.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp index b208aa13d4f..c3c5058ddfd 100644 --- a/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp @@ -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) |