Merged changes in the trunk up to revision 41225.
[blender-staging.git] / source / blender / freestyle / intern / blender_interface / FRS_freestyle.cpp
index ab1d9e371e7f6aac816e8114dae4f5b1f29b69e6..03a6e1ff861c95c5e273fee6e66199207cef84d5 100644 (file)
@@ -563,7 +563,7 @@ extern "C" {
                        sprintf(lineset->name, "LineSet %i", lineset_index+1);
                else
                        strcpy(lineset->name, "LineSet");
-               BLI_uniquename(&config->linesets, lineset, "FreestyleLineSet", '.', BLI_STRUCT_OFFSET(FreestyleLineSet, name), sizeof(lineset->name));
+               BLI_uniquename(&config->linesets, lineset, "FreestyleLineSet", '.', offsetof(FreestyleLineSet, name), sizeof(lineset->name));
        }
 
        void FRS_delete_active_lineset(FreestyleConfig *config)