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:
authorCampbell Barton <ideasman42@gmail.com>2012-09-15 10:29:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-15 10:29:32 +0400
commit77ed2d8ca9af8bb646ceb56f47e7a9e21d1eaaee (patch)
tree9f7bf0a150b958f0a56ed9eae00fbc516618a6ac /source/blender/editors/armature
parentaa364bb366d8c0d6566ffacd59d881a8bab8657b (diff)
code cleanup: remove paranoid NULL checks (these cases would crash earlier of the vars were in fact NULL)
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c
index 738fdc229fb..cb52d88f985 100644
--- a/source/blender/editors/armature/editarmature.c
+++ b/source/blender/editors/armature/editarmature.c
@@ -4589,7 +4589,9 @@ void ED_pose_deselectall(Object *ob, int test)
int selectmode = 0;
/* we call this from outliner too */
- if (ELEM(NULL, ob, ob->pose)) return;
+ if (ob->pose == NULL) {
+ return;
+ }
/* Determine if we're selecting or deselecting */
if (test == 1) {