Fix #107863: Handles NULL pose constraint list #107864

Merged
YimingWu merged 1 commits from ChengduLittleA/blender:constraint_list_null_fix into main 2023-05-12 10:56:59 +02:00
1 changed files with 3 additions and 0 deletions

View File

@ -779,6 +779,9 @@ static bConstraint *edit_constraint_property_get(bContext *C, wmOperator *op, Ob
if (owner == EDIT_CONSTRAINT_OWNER_BONE) {
list = ED_object_pose_constraint_list(C);
if (!list) {
return NULL;
}
}
else {
list = &ob->constraints;