Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert.c
| Show First 20 Lines • Show All 1,098 Lines • ▼ Show 20 Lines | else if (ob && (ob->mode & OB_MODE_POSE)) { | ||||
| /* Multi object editing. */ | /* Multi object editing. */ | ||||
| initTransDataContainers_FromObjectData(t, ob, NULL, 0); | initTransDataContainers_FromObjectData(t, ob, NULL, 0); | ||||
| convert_type = TC_POSE; | convert_type = TC_POSE; | ||||
| } | } | ||||
| else if (ob && (ob->mode & OB_MODE_WEIGHT_PAINT) && !(t->options & CTX_PAINT_CURVE)) { | else if (ob && (ob->mode & OB_MODE_WEIGHT_PAINT) && !(t->options & CTX_PAINT_CURVE)) { | ||||
| /* important that ob_armature can be set even when its not selected [#23412] | /* important that ob_armature can be set even when its not selected [#23412] | ||||
| * lines below just check is also visible */ | * lines below just check is also visible */ | ||||
| // here? | |||||
| Object *ob_armature = BKE_modifiers_is_deformed_by_armature(ob); | Object *ob_armature = BKE_modifiers_is_deformed_by_armature(ob); | ||||
| if (ob_armature && ob_armature->mode & OB_MODE_POSE) { | if (ob_armature && ob_armature->mode & OB_MODE_POSE) { | ||||
| Base *base_arm = BKE_view_layer_base_find(t->view_layer, ob_armature); | Base *base_arm = BKE_view_layer_base_find(t->view_layer, ob_armature); | ||||
| if (base_arm) { | if (base_arm) { | ||||
| View3D *v3d = t->view; | View3D *v3d = t->view; | ||||
| if (BASE_VISIBLE(v3d, base_arm)) { | if (BASE_VISIBLE(v3d, base_arm)) { | ||||
| Object *objects[1]; | Object *objects[1]; | ||||
| objects[0] = ob_armature; | objects[0] = ob_armature; | ||||
| ▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines | |||||