Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert.c
| Show First 20 Lines • Show All 1,095 Lines • ▼ Show 20 Lines | else if (ob && (ob->mode & OB_MODE_POSE)) { | ||||
| /* XXX active-layer checking isn't done | /* XXX active-layer checking isn't done | ||||
| * as that should probably be checked through context instead. */ | * as that should probably be checked through context instead. */ | ||||
| /* 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_ALL_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 */ | ||||
| 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)) { | ||||
| ▲ Show 20 Lines • Show All 464 Lines • Show Last 20 Lines | |||||