Fixed compilation bug in r35002: C90 forbids mixed declarations and code. I've changed the order of variable declarations.

This commit is contained in:
Konrad Kleine
2011-02-20 22:03:49 +00:00
parent 38e7084179
commit 187f9c5874

View File

@@ -477,12 +477,12 @@ void POSELIB_OT_pose_add (wmOperatorType *ot)
/* can be called with C == NULL */ /* can be called with C == NULL */
static EnumPropertyItem *poselib_stored_pose_itemf(bContext *C, PointerRNA *UNUSED(ptr), int *free) 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; TimeMarker *marker;
EnumPropertyItem *item= NULL, item_tmp= {0}; EnumPropertyItem *item= NULL, item_tmp= {0};
int totitem= 0; int totitem= 0;
int i= 0; int i= 0;
Object *ob = get_poselib_object(C);
bAction *act = (ob) ? ob->poselib : NULL;
if (C == NULL) { if (C == NULL) {
return DummyRNA_DEFAULT_items; return DummyRNA_DEFAULT_items;