From d5acf4f467bfdcd4d35051c5a7fa9cd4f3234968 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Mon, 1 May 2017 16:46:43 +0200 Subject: Fix for issue when duplicating text objects The crash happens with Cycles and Font objects if we get Cycles working with draw manager. --- source/blender/blenkernel/intern/curve.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 084af644588..0cfc4a99eb2 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -209,6 +209,7 @@ Curve *BKE_curve_copy(Main *bmain, Curve *cu) cun->strinfo = MEM_dupallocN(cu->strinfo); cun->tb = MEM_dupallocN(cu->tb); cun->bb = MEM_dupallocN(cu->bb); + cun->batch_cache = NULL; if (cu->key) { cun->key = BKE_key_copy(bmain, cu->key); -- cgit v1.2.3