https://svn.blender.org/svnroot/bf-blender/trunk/blender, in sync with trunk now
[blender.git] / source / blender / makesrna / intern / rna_object_api.c
index d48f1c93da82b6928b3d6e0b873e06736ca0edc0..0ebf90437494007a4d4601692f23ea43c0d5f748 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 );
                }