Skip to content
Snippets Groups Projects
Commit c2045ef7 authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T39033: Regression, duplicating proxy loses proxy

fix for bug making duplicates real effected copying scenes and linked duplis.
parent 09b2531b
Branches
Tags
No related merge requests found
...@@ -1486,11 +1486,6 @@ Object *BKE_object_copy_ex(Main *bmain, Object *ob, int copy_caches) ...@@ -1486,11 +1486,6 @@ Object *BKE_object_copy_ex(Main *bmain, Object *ob, int copy_caches)
obn->mode = 0; obn->mode = 0;
obn->sculpt = NULL; obn->sculpt = NULL;
/* Proxies are not to be copied. */
obn->proxy_from = NULL;
obn->proxy_group = NULL;
obn->proxy = NULL;
/* increase user numbers */ /* increase user numbers */
id_us_plus((ID *)obn->data); id_us_plus((ID *)obn->data);
id_us_plus((ID *)obn->gpd); id_us_plus((ID *)obn->gpd);
......
...@@ -1298,6 +1298,11 @@ static void make_object_duplilist_real(bContext *C, Scene *scene, Base *base, ...@@ -1298,6 +1298,11 @@ static void make_object_duplilist_real(bContext *C, Scene *scene, Base *base,
BKE_free_animdata(&ob->id); BKE_free_animdata(&ob->id);
ob->adt = NULL; ob->adt = NULL;
/* Proxies are not to be copied. */
ob->proxy_from = NULL;
ob->proxy_group = NULL;
ob->proxy = NULL;
ob->parent = NULL; ob->parent = NULL;
BLI_listbase_clear(&ob->constraints); BLI_listbase_clear(&ob->constraints);
ob->curve_cache = NULL; ob->curve_cache = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment