Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.c
| Show First 20 Lines • Show All 2,082 Lines • ▼ Show 20 Lines | for (i = 0; i < target->totcol; i++) { | ||||
| * since we know this object is new and not used elsewhere */ | * since we know this object is new and not used elsewhere */ | ||||
| id_us_plus((ID *)ob->mat[i]); | id_us_plus((ID *)ob->mat[i]); | ||||
| } | } | ||||
| } | } | ||||
| /* type conversions */ | /* type conversions */ | ||||
| if (target->type == OB_ARMATURE) { | if (target->type == OB_ARMATURE) { | ||||
| copy_object_pose(ob, target, 0); /* data copy, object pointers in constraints */ | copy_object_pose(ob, target, 0); /* data copy, object pointers in constraints */ | ||||
| BKE_pose_rest(ob->pose); /* clear all transforms in channels */ | BKE_pose_rest(ob->pose, false); /* clear all transforms in channels */ | ||||
| BKE_pose_rebuild(bmain, ob, ob->data, true); /* set all internal links */ | BKE_pose_rebuild(bmain, ob, ob->data, true); /* set all internal links */ | ||||
| armature_set_id_extern(ob); | armature_set_id_extern(ob); | ||||
| } | } | ||||
| else if (target->type == OB_EMPTY) { | else if (target->type == OB_EMPTY) { | ||||
| ob->empty_drawtype = target->empty_drawtype; | ob->empty_drawtype = target->empty_drawtype; | ||||
| ob->empty_drawsize = target->empty_drawsize; | ob->empty_drawsize = target->empty_drawsize; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,602 Lines • Show Last 20 Lines | |||||