One last bit of personal education -- added OPERATOR_CANCELLED on sanity check failures.
This commit is contained in:
@@ -4435,6 +4435,12 @@ static int pose_select_parent_exec(bContext *C, wmOperator *op)
|
||||
parent->bone->flag |= BONE_ACTIVE;
|
||||
pchan->bone->flag &= ~BONE_ACTIVE;
|
||||
}
|
||||
else {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
WM_event_add_notifier(C, NC_OBJECT|ND_BONE_SELECT, ob);
|
||||
|
||||
Reference in New Issue
Block a user