From aaba317c763657d7c309a1c3e96b58f5924afd29 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Mon, 30 Sep 2013 23:02:29 +0000 Subject: Follow-up to r60433 (related to Bug #36878): additional checks for NULL line styles. --- source/blender/blenkernel/intern/freestyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/freestyle.c b/source/blender/blenkernel/intern/freestyle.c index 846b3779649..d87c93310c8 100644 --- a/source/blender/blenkernel/intern/freestyle.c +++ b/source/blender/blenkernel/intern/freestyle.c @@ -107,7 +107,7 @@ void BKE_freestyle_config_copy(FreestyleConfig *new_config, FreestyleConfig *con static void copy_lineset(FreestyleLineSet *new_lineset, FreestyleLineSet *lineset) { new_lineset->linestyle = lineset->linestyle; - if (lineset->linestyle) + if (new_lineset->linestyle) new_lineset->linestyle->id.us++; new_lineset->flags = lineset->flags; new_lineset->selection = lineset->selection; -- cgit v1.2.3