Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Lines | |||||
| bool ED_operator_posemode(bContext *C) | bool ED_operator_posemode(bContext *C) | ||||
| { | { | ||||
| Object *obact = CTX_data_active_object(C); | Object *obact = CTX_data_active_object(C); | ||||
| if (obact && !(obact->mode & OB_MODE_EDIT)) { | if (obact && !(obact->mode & OB_MODE_EDIT)) { | ||||
| Object *obpose; | Object *obpose; | ||||
| if ((obpose = BKE_object_pose_armature_get(obact))) { | if ((obpose = BKE_object_pose_armature_get(obact))) { | ||||
| if ((obact == obpose) || (obact->mode & OB_MODE_WEIGHT_PAINT)) { | if ((obact == obpose) || (obact->mode & OB_MODE_ALL_WEIGHT_PAINT)) { | ||||
| return 1; | return 1; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 5,147 Lines • Show Last 20 Lines | |||||