svn merge -r41655:41715 ^/trunk/blender --- this is the real cycles merge, needs...
[blender.git] / source / blender / makesrna / intern / rna_object_api.c
index c4508c718e5d0caa7a6656bc1253a22b5bca322d..a9d0ed1a0bf7d3a8adfa22c12bc9eb518d406859 100644 (file)
@@ -158,7 +158,7 @@ Mesh *rna_Object_to_mesh(Object *ob, ReportList *reports, Scene *sce, int apply_
                                dm = mesh_create_derived_view( sce, ob, mask );
                        
                        tmpmesh = add_mesh( "Mesh" );
-                       DM_to_mesh( dm, tmpmesh );
+                       DM_to_mesh( dm, tmpmesh, ob );
                        dm->release( dm );
                }