Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Show First 20 Lines • Show All 1,872 Lines • ▼ Show 20 Lines | static void make_object_duplilist_real( | ||||
| if (base->object->transflag & OB_DUPLICOLLECTION && base->object->instance_collection) { | if (base->object->transflag & OB_DUPLICOLLECTION && base->object->instance_collection) { | ||||
| for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) { | ||||
| if (ob->proxy_group == base->object) { | if (ob->proxy_group == base->object) { | ||||
| ob->proxy = NULL; | ob->proxy = NULL; | ||||
| ob->proxy_from = NULL; | ob->proxy_from = NULL; | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM); | DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM); | ||||
| } | } | ||||
| } | } | ||||
| base->object->instance_collection = NULL; | |||||
| } | } | ||||
| BLI_ghash_free(dupli_gh, NULL, NULL); | BLI_ghash_free(dupli_gh, NULL, NULL); | ||||
| if (parent_gh) { | if (parent_gh) { | ||||
| BLI_ghash_free(parent_gh, NULL, NULL); | BLI_ghash_free(parent_gh, NULL, NULL); | ||||
| } | } | ||||
| free_object_duplilist(lb_duplis); | free_object_duplilist(lb_duplis); | ||||
| ▲ Show 20 Lines • Show All 952 Lines • Show Last 20 Lines | |||||