Fix T39033: Regression, duplicating proxy loses proxy
fix for bug making duplicates real effected copying scenes and linked duplis.
This commit is contained in:
@@ -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,
|
|||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user