Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 962 Lines • ▼ Show 20 Lines | else { | ||||
| } | } | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| if (tc->data_len) { | if (tc->data_len) { | ||||
| DEG_id_tag_update(tc->obedit->data, 0); /* sets recalc flags */ | DEG_id_tag_update(tc->obedit->data, 0); /* sets recalc flags */ | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (t->flag & T_POSE && (t->mode == TFM_BONESIZE)) { | |||||
| /* Handle the exception where for TFM_BONESIZE in edit mode we pretend to be | |||||
| * in pose mode (to use bone orientation matrix), | |||||
| * in that case we have to do mirroring as well. */ | |||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | |||||
| Object *ob = tc->poseobj; | |||||
| bArmature *arm = ob->data; | |||||
| if (arm->flag & ARM_MIRROR_EDIT) { | |||||
| if (t->state != TRANS_CANCEL) { | |||||
| ED_armature_edit_transform_mirror_update(ob); | |||||
| } | |||||
| else { | |||||
| restoreBones(tc); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| else if (t->flag & T_POSE) { | else if (t->flag & T_POSE) { | ||||
| GSet *motionpath_updates = BLI_gset_ptr_new("motionpath updates"); | GSet *motionpath_updates = BLI_gset_ptr_new("motionpath updates"); | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| Object *ob = tc->poseobj; | Object *ob = tc->poseobj; | ||||
| bArmature *arm = ob->data; | bArmature *arm = ob->data; | ||||
| /* if animtimer is running, and the object already has animation data, | /* if animtimer is running, and the object already has animation data, | ||||
| ▲ Show 20 Lines • Show All 1,490 Lines • Show Last 20 Lines | |||||