Compilation error fix: plain C dos not support mixed declarations and cod
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Sep 2012 06:16:38 +0000 (06:16 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Sep 2012 06:16:38 +0000 (06:16 +0000)
source/blender/editors/interface/interface_handlers.c

index 1629180d0a3e800e75e9435271ccbb5601116381..fa947e4779575914305adac4e87866a98eea7795 100644 (file)
@@ -808,6 +808,8 @@ static void ui_add_smart_controller(bContext *C, uiBut *from, uiBut *to)
 
        uiLink *link = from->link;
 
+       PointerRNA props_ptr, object_ptr;
+       
        if (link->ppoin)
                sens_from_links = (bController ***)(link->ppoin);
        else return;
@@ -838,7 +840,6 @@ static void ui_add_smart_controller(bContext *C, uiBut *from, uiBut *to)
        if (!act_iter) return;
        
        /* in case the linked controller is not the active one */
-       PointerRNA props_ptr, object_ptr;
        RNA_pointer_create((ID *)ob, &RNA_Object, ob, &object_ptr);
        
        WM_operator_properties_create(&props_ptr, "LOGIC_OT_controller_add");