Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-18 10:16:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-18 10:16:38 +0400
commit92852aee83e67e4a549196997052388f6270cfd2 (patch)
treee4f23c2d834f62a7179a82d4fb9c1728fa202929 /source
parentc00d0fa5159921ccb52084daf585eca1a271633d (diff)
Compilation error fix: plain C dos not support mixed declarations and cod
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 1629180d0a3..fa947e47795 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -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");