Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-11-25 05:10:55 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-11-25 05:10:55 +0400
commit9bd9b7e958b86f4dda24d6d2af3bf42a751cd79a (patch)
tree74a390d121467eda1c020ffdd63446583bb7a807 /source/blender/makesrna/intern/rna_main_api.c
parent0d9d7d3c9d38a12e78b0599a6b502de33db8b5f1 (diff)
Made minor revisions (no functional changes).
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index e4d10137b14..3c909d5a8fd 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -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)