[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47737] trunk/blender/source/blender: Cosmetic fixes

Joshua Leung aligorith at gmail.com
Mon Jun 11 13:11:12 CEST 2012


Revision: 47737
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47737
Author:   aligorith
Date:     2012-06-11 11:11:11 +0000 (Mon, 11 Jun 2012)
Log Message:
-----------
Cosmetic fixes
* PoseBone struct didn't have an icon
* Comment fixes (stil referenced IPO's)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyframes_general.c
    trunk/blender/source/blender/makesrna/intern/rna_pose.c

Modified: trunk/blender/source/blender/editors/animation/keyframes_general.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframes_general.c	2012-06-11 11:00:58 UTC (rev 47736)
+++ trunk/blender/source/blender/editors/animation/keyframes_general.c	2012-06-11 11:11:11 UTC (rev 47737)
@@ -187,7 +187,7 @@
 	if ((fcu == NULL) || (fcu->bezt == NULL) || (fcu->totvert <= 1))
 		return;
 	
-	/* make a copy of the old BezTriples, and clear IPO curve */
+	/* make a copy of the old BezTriples, and clear F-Curve */
 	old_bezts = fcu->bezt;
 	totCount = fcu->totvert;	
 	fcu->bezt = NULL;
@@ -412,13 +412,13 @@
 				if (range) {
 					value_cache = MEM_callocN(sizeof(TempFrameValCache) * range, "IcuFrameValCache");
 					
-					/*  sample values   */
+					/* sample values */
 					for (n = 1, fp = value_cache; n < range && fp; n++, fp++) {
 						fp->frame = (float)(sfra + n);
 						fp->val = evaluate_fcurve(fcu, fp->frame);
 					}
 					
-					/*  add keyframes with these, tagging as 'breakdowns'   */
+					/* add keyframes with these, tagging as 'breakdowns' */
 					for (n = 1, fp = value_cache; n < range && fp; n++, fp++) {
 						nIndex = insert_vert_fcurve(fcu, fp->frame, fp->val, 1);
 						BEZKEYTYPE(fcu->bezt + nIndex) = BEZT_KEYTYPE_BREAKDOWN;

Modified: trunk/blender/source/blender/makesrna/intern/rna_pose.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_pose.c	2012-06-11 11:00:58 UTC (rev 47736)
+++ trunk/blender/source/blender/makesrna/intern/rna_pose.c	2012-06-11 11:11:11 UTC (rev 47737)
@@ -746,6 +746,7 @@
 	RNA_def_struct_ui_text(srna, "Pose Bone", "Channel defining pose data for a bone in a Pose");
 	RNA_def_struct_path_func(srna, "rna_PoseBone_path");
 	RNA_def_struct_idprops_func(srna, "rna_PoseBone_idprops");
+	RNA_def_struct_ui_icon(srna, ICON_BONE_DATA);
 	
 	/* Bone Constraints */
 	prop = RNA_def_property(srna, "constraints", PROP_COLLECTION, PROP_NONE);




More information about the Bf-blender-cvs mailing list