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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-25 00:17:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-25 00:17:14 +0300
commit5f4e24d5990a7ecd6198ee394da8b7c07277cd91 (patch)
tree9a1909d90276f0243d50c6624da43c794cc52dad /source/blender/editors/space_view3d/view3d_toolbar.c
parent4b8bc301c62784d111f2cffcbc35cf9c6189e37b (diff)
operator draw function working again. needed to add layout to the operator to give access to "self.layout" - like panels, headers and manu's have
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_toolbar.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_toolbar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_toolbar.c b/source/blender/editors/space_view3d/view3d_toolbar.c
index 5dbc6cc232c..0384a23579e 100644
--- a/source/blender/editors/space_view3d/view3d_toolbar.c
+++ b/source/blender/editors/space_view3d/view3d_toolbar.c
@@ -142,8 +142,11 @@ static void view3d_panel_operator_redo_buts(const bContext *C, Panel *pa, wmOper
}
RNA_pointer_create(&wm->id, op->type->srna, op->properties, &ptr);
- if(op->type->ui)
- op->type->ui((bContext*)C, op, pa->layout);
+ if(op->type->ui) {
+ op->layout= pa->layout;
+ op->type->ui((bContext*)C, op);
+ op->layout= NULL;
+ }
else
uiDefAutoButsRNA(C, pa->layout, &ptr, 1);
}