From a5c35fb27f090bb716a3bb49a69a56be80dff6d3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Jan 2014 03:52:21 +1100 Subject: Code cleanup: use booleans where appropriate --- source/blender/editors/animation/anim_filter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/animation/anim_filter.c') diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index 5e93fda0cd4..be1d300fcdb 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -1766,7 +1766,7 @@ static size_t animdata_filter_ds_material(bAnimContext *ac, ListBase *anim_data, static size_t animdata_filter_ds_materials(bAnimContext *ac, ListBase *anim_data, bDopeSheet *ads, Object *ob, int filter_mode) { - short has_nested = 0; + bool has_nested = false; size_t items = 0; int a = 0; @@ -1780,8 +1780,9 @@ static size_t animdata_filter_ds_materials(bAnimContext *ac, ListBase *anim_data items += animdata_filter_ds_material(ac, anim_data, ads, ma, filter_mode); /* for optimising second pass - check if there's a nested material here to come back for */ - if (has_nested == 0) - has_nested = give_node_material(ma) != NULL; + if (has_nested == false) { + has_nested = (give_node_material(ma) != NULL); + } } } -- cgit v1.2.3