=bmesh= merge from trunk at r36529
[blender.git] / source / blender / makesrna / intern / rna_object_api.c
index d6af04f24750d20a43088c7b197fd2442b2049cd..4ccd4050bc1303a4ffd7866a0599c9b80f721020 100644 (file)
@@ -160,7 +160,7 @@ static Mesh *rna_Object_to_mesh(Object *ob, ReportList *reports, Scene *sce, int
                                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 );
                }