diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-11 20:23:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-11 20:23:33 +0400 |
commit | e6dcf9504e1a9c1dcd574044e7a717d0def8aadc (patch) | |
tree | ff880916f6bb76197abdb5d57fdfe5e3e2413f60 /source/blender/blenkernel | |
parent | 1672ac25ca9b828d5e3d3fc2a69b1c346304036c (diff) |
code cleanup:
- move recursive bone/parent check into ED_armature.h
- remove unused vars
- use const for paint vector args.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 0205fe91a60..c93da151463 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -3128,9 +3128,8 @@ KeyBlock *BKE_object_insert_shape_key(Scene *scene, Object *ob, const char *name bool BKE_object_is_child_recursive(Object *ob_parent, Object *ob_child) { - Object *ob_test; - for (ob_test = ob_child->parent; ob_test; ob_test = ob_test->parent) { - if (ob_test == ob_parent) { + for (ob_child = ob_child->parent; ob_child; ob_child = ob_child->parent) { + if (ob_child == ob_parent) { return true; } } |