Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_armature.c
| Show First 20 Lines • Show All 663 Lines • ▼ Show 20 Lines | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| arm = BKE_armature_from_object(tc->poseobj); | arm = BKE_armature_from_object(tc->poseobj); | ||||
| if ((arm == NULL) || (pose == NULL)) { | if ((arm == NULL) || (pose == NULL)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| const bool mirror = ((pose->flag & POSE_MIRROR_EDIT) != 0); | const bool mirror = ((pose->flag & POSE_MIRROR_EDIT) != 0); | ||||
| /* set flags and count total */ | /* set flags and count total */ | ||||
| tc->data_len = count_set_pose_transflags(ob, t->mode, t->around, has_translate_rotate); | tc->data_len = count_set_pose_transflags(ob, t->mode, t->around, has_translate_rotate, true); | ||||
| if (tc->data_len == 0) { | if (tc->data_len == 0) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (arm->flag & ARM_RESTPOS) { | if (arm->flag & ARM_RESTPOS) { | ||||
| if (ELEM(t->mode, TFM_DUMMY, TFM_BONESIZE) == 0) { | if (ELEM(t->mode, TFM_DUMMY, TFM_BONESIZE) == 0) { | ||||
| BKE_report(t->reports, RPT_ERROR, "Cannot change Pose when 'Rest Position' is enabled"); | BKE_report(t->reports, RPT_ERROR, "Cannot change Pose when 'Rest Position' is enabled"); | ||||
| tc->data_len = 0; | tc->data_len = 0; | ||||
| ▲ Show 20 Lines • Show All 414 Lines • Show Last 20 Lines | |||||