Fix #32667: Curve softbodies doesn't render animation (cycles)
[blender.git] / source / blender / makesrna / intern / rna_object_api.c
index 1263e7716ddd040d5fb43b8d1656992d4ba400da..a6f49d80b258e44a74f2e1aed417380ac970e7fa 100644 (file)
@@ -96,7 +96,7 @@ Mesh *rna_Object_to_mesh(Object *ob, ReportList *reports, Scene *sce, int apply_
                        float (*orco)[3] = NULL;
 
                        /* copies object and modifiers (but not the data) */
                        float (*orco)[3] = NULL;
 
                        /* copies object and modifiers (but not the data) */
-                       tmpobj = BKE_object_copy(ob);
+                       tmpobj = BKE_object_copy_with_caches(ob);
                        tmpcu = (Curve *)tmpobj->data;
                        tmpcu->id.us--;
 
                        tmpcu = (Curve *)tmpobj->data;
                        tmpcu->id.us--;