[Bf-blender-cvs] [d5acf4f467b] blender2.8: Fix for issue when duplicating text objects

Dalai Felinto noreply at git.blender.org
Mon May 1 16:48:17 CEST 2017


Commit: d5acf4f467bfdcd4d35051c5a7fa9cd4f3234968
Author: Dalai Felinto
Date:   Mon May 1 16:46:43 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBd5acf4f467bfdcd4d35051c5a7fa9cd4f3234968

Fix for issue when duplicating text objects

The crash happens with Cycles and Font objects if we get Cycles working
with draw manager.

===================================================================

M	source/blender/blenkernel/intern/curve.c

===================================================================

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);




More information about the Bf-blender-cvs mailing list