[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28612] trunk/blender/source/blender/ editors/space_outliner/outliner.c: Datablocks Viewer Bugfix:

Joshua Leung aligorith at gmail.com
Thu May 6 13:28:49 CEST 2010


Revision: 28612
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28612
Author:   aligorith
Date:     2010-05-06 13:28:46 +0200 (Thu, 06 May 2010)

Log Message:
-----------
Datablocks Viewer Bugfix: 

Adding Drivers and/or KeyingSet paths from the Datablocks Viewer for array elements was not working.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner.c	2010-05-06 08:34:05 UTC (rev 28611)
+++ trunk/blender/source/blender/editors/space_outliner/outliner.c	2010-05-06 11:28:46 UTC (rev 28612)
@@ -3854,7 +3854,7 @@
 			short groupmode= KSP_GROUP_KSNAME;
 			
 			/* check if RNA-property described by this selected element is an animateable prop */
-			if ((tselem->type == TSE_RNA_PROPERTY) && RNA_property_animateable(&te->rnaptr, te->directdata)) {
+			if (ELEM(tselem->type, TSE_RNA_PROPERTY, TSE_RNA_ARRAY_ELEM) && RNA_property_animateable(&te->rnaptr, te->directdata)) {
 				/* get id + path + index info from the selected element */
 				tree_element_to_path(soops, te, tselem, 
 						&id, &path, &array_index, &flag, &groupmode);
@@ -3862,7 +3862,7 @@
 			
 			/* only if ID and path were set, should we perform any actions */
 			if (id && path) {
-				int arraylen;
+				int arraylen = 1;
 				
 				/* array checks */
 				if (flag & KSP_FLAG_WHOLE_ARRAY) {





More information about the Bf-blender-cvs mailing list