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:
authorBastien Montagne <montagne29@wanadoo.fr>2011-09-28 19:22:13 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2011-09-28 19:22:13 +0400
commit35f881b44dfed78290770f929405b63f480d78cb (patch)
tree46b8bd126157193dc658fbb7e9716150b28bd466 /source/blender/editors/animation/anim_filter.c
parent113d556295a84603b95e5bc318e2cb28a27097ed (diff)
Commented and tagged some unused vars, added some var init (gcc warnings...)
Diffstat (limited to 'source/blender/editors/animation/anim_filter.c')
-rw-r--r--source/blender/editors/animation/anim_filter.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c
index bd5935c893c..f55d67fed41 100644
--- a/source/blender/editors/animation/anim_filter.c
+++ b/source/blender/editors/animation/anim_filter.c
@@ -344,15 +344,19 @@ short ANIM_animdata_get_context (const bContext *C, bAnimContext *ac)
* keep expander channels with no sub-data out, as those cases should get
* dealt with by the recursive detection idiom in place.
*/
+/* XXX Commented most of that macro, since it seems that _doSubChannels var is never used...
+ * mont29.
+ */
#define BEGIN_ANIMFILTER_SUBCHANNELS(expanded_check) \
{ \
int _filter = filter_mode; \
- short _doSubChannels = 0; \
- if (!(filter_mode & ANIMFILTER_LIST_VISIBLE) || (expanded_check)) \
- _doSubChannels=1; \
- else if (!(filter_mode & ANIMFILTER_LIST_CHANNELS)) \
- _doSubChannels=2; \
- else {\
+/* short _doSubChannels = 0; \*/ \
+/* if (!(filter_mode & ANIMFILTER_LIST_VISIBLE) || (expanded_check)) \*/ \
+/* _doSubChannels=1; \*/ \
+/* else if (!(filter_mode & ANIMFILTER_LIST_CHANNELS)) \*/ \
+/* _doSubChannels=2; \*/ \
+/* else {\*/ \
+ if (!(!(filter_mode & ANIMFILTER_LIST_VISIBLE) || (expanded_check) || !(filter_mode & ANIMFILTER_LIST_CHANNELS))) { \
filter_mode |= ANIMFILTER_TMP_PEEK; \
}
/* ... standard sub-channel filtering can go on here now ... */