[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35003] trunk/blender/source/blender/ editors/armature/poselib.c: Fixed compilation bug in r35002: C90 forbids mixed declarations and code.

Konrad Kleine konrad at konradwilhelm.de
Sun Feb 20 23:03:49 CET 2011


Revision: 35003
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35003
Author:   kwk
Date:     2011-02-20 22:03:49 +0000 (Sun, 20 Feb 2011)
Log Message:
-----------
Fixed compilation bug in r35002: C90 forbids mixed declarations and code. I've changed the order of variable declarations.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35002

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/poselib.c

Modified: trunk/blender/source/blender/editors/armature/poselib.c
===================================================================
--- trunk/blender/source/blender/editors/armature/poselib.c	2011-02-20 21:32:21 UTC (rev 35002)
+++ trunk/blender/source/blender/editors/armature/poselib.c	2011-02-20 22:03:49 UTC (rev 35003)
@@ -477,12 +477,12 @@
 /* can be called with C == NULL */
 static EnumPropertyItem *poselib_stored_pose_itemf(bContext *C, PointerRNA *UNUSED(ptr), int *free)
 {
-	Object *ob = get_poselib_object(C);
-	bAction *act = (ob) ? ob->poselib : NULL;;
 	TimeMarker *marker;
 	EnumPropertyItem *item= NULL, item_tmp= {0};
 	int totitem= 0;
 	int i= 0;
+	Object *ob = get_poselib_object(C);
+	bAction *act = (ob) ? ob->poselib : NULL;
 
 	if (C == NULL) {
 		return DummyRNA_DEFAULT_items;




More information about the Bf-blender-cvs mailing list