Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hess <me@harkyman.com>2009-02-11 20:46:10 +0300
committerRoland Hess <me@harkyman.com>2009-02-11 20:46:10 +0300
commit294a3a2b6d3528b2dac7c64076e59a3bf82db1eb (patch)
tree8fbfd0ec5d67284347dfe9d99a6f971124fba125 /source/blender/editors/armature
parent2e79e4e9751aa44da905fb0646d8b9b8b4f9d825 (diff)
One last bit of personal education -- added OPERATOR_CANCELLED on sanity check failures.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c
index 9dfd356ce43..fdefd01a122 100644
--- a/source/blender/editors/armature/editarmature.c
+++ b/source/blender/editors/armature/editarmature.c
@@ -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);