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:
authorCampbell Barton <ideasman42@gmail.com>2015-03-19 06:33:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-19 06:34:14 +0300
commit2a2bf3c1ab1f9f844a66d1f5f69232d64e16d678 (patch)
tree46cbf2a670b469789dbc1ba1d0aa1d05dc5790e5 /source/blender/blenkernel/intern/library.c
parent9b54c88e0fdadf3a42cdd85bab68766dc83861a5 (diff)
Freestyle: pass Main struct to new/copy
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r--source/blender/blenkernel/intern/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index c602067d5bd..9cda4d91933 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -384,7 +384,7 @@ bool id_copy(ID *id, ID **newid, bool test)
if (!test) *newid = (ID *)BKE_mask_copy((Mask *)id);
return true;
case ID_LS:
- if (!test) *newid = (ID *)BKE_linestyle_copy((FreestyleLineStyle *)id);
+ if (!test) *newid = (ID *)BKE_linestyle_copy(G.main, (FreestyleLineStyle *)id);
return true;
}