increase grease pencil user count when copying objects.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Dec 2010 14:40:14 +0000 (14:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Dec 2010 14:40:14 +0000 (14:40 +0000)
source/blender/blenkernel/intern/object.c

index b98927db877272c73edd847b00f1b9fb3ad59eae..fba227eb479ea655119de61fc0fa1d0bc2606d8d 100644 (file)
@@ -1322,8 +1322,8 @@ Object *copy_object(Object *ob)
 
        /* increase user numbers */
        id_us_plus((ID *)obn->data);
+       id_us_plus((ID *)obn->gpd);
        id_lib_extern((ID *)obn->dup_group);
-       
 
        for(a=0; a<obn->totcol; a++) id_us_plus((ID *)obn->mat[a]);