Made minor revisions (no functional changes).
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Fri, 25 Nov 2011 01:10:55 +0000 (01:10 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Fri, 25 Nov 2011 01:10:55 +0000 (01:10 +0000)
source/blender/makesrna/intern/rna_main_api.c

index e4d10137b14322c09d2c3e46e782c509505699c7..3c909d5a8fdadf574e549adb213bfd061d3e5915 100644 (file)
@@ -547,9 +547,10 @@ void rna_Main_movieclips_remove(Main *bmain, MovieClip *clip)
 FreestyleLineStyle *rna_Main_linestyles_new(Main *bmain, const char* name)
 {
        FreestyleLineStyle *linestyle = FRS_new_linestyle(name, bmain);
-       linestyle->id.us--;
+       id_us_min(&linestyle->id);
        return linestyle;
 }
+
 void rna_Main_linestyles_remove(Main *bmain, ReportList *reports, FreestyleLineStyle *linestyle)
 {
        if(ID_REAL_USERS(linestyle) <= 0)