Fix for issue when duplicating text objects

The crash happens with Cycles and Font objects if we get Cycles working
with draw manager.
This commit is contained in:
Dalai Felinto
2017-05-01 16:46:43 +02:00
parent bb5f4a1f67
commit d5acf4f467

View File

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