[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25094] trunk/blender/source/blender/ editors/animation/anim_channels_edit.c: Bugfix: Toggle animation channel visibility (shift-v) was not flushing the new values correctly

Joshua Leung aligorith at gmail.com
Thu Dec 3 11:27:22 CET 2009


Revision: 25094
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25094
Author:   aligorith
Date:     2009-12-03 11:27:22 +0100 (Thu, 03 Dec 2009)

Log Message:
-----------
Bugfix: Toggle animation channel visibility (shift-v) was not flushing the new values correctly

- Modifying groups did not flush status to channels below
- Objects were always toggled. Still need to figure out why this didn't work right...

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_edit.c

Modified: trunk/blender/source/blender/editors/animation/anim_channels_edit.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2009-12-03 10:23:38 UTC (rev 25093)
+++ trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2009-12-03 10:27:22 UTC (rev 25094)
@@ -1104,11 +1104,16 @@
 
 	/* Now set the flags */
 	for (ale= anim_data.first; ale; ale= ale->next) {
+		/* hack: skip object channels for now, since flushing those will always flush everything, but they are always included */
+		// TODO: find out why this is the case, and fix that
+		if (ale->type == ANIMTYPE_OBJECT)
+			continue;
+		
 		/* change the setting */
 		ANIM_channel_setting_set(&ac, ale, ACHANNEL_SETTING_VISIBLE, vis);
 		
 		/* now, also flush selection status up/down as appropriate */
-		//ANIM_visibility_flush_anim_channels(&ac, &all_data, ale, (vis == ACHANNEL_SETFLAG_ADD));
+		ANIM_visibility_flush_anim_channels(&ac, &all_data, ale, (vis == ACHANNEL_SETFLAG_ADD));
 	}
 	
 	/* cleanup */





More information about the Bf-blender-cvs mailing list