diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-25 00:17:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-25 00:17:14 +0300 |
commit | 5f4e24d5990a7ecd6198ee394da8b7c07277cd91 (patch) | |
tree | 9a1909d90276f0243d50c6624da43c794cc52dad /source/blender/editors/space_file/file_panels.c | |
parent | 4b8bc301c62784d111f2cffcbc35cf9c6189e37b (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_file/file_panels.c')
-rw-r--r-- | source/blender/editors/space_file/file_panels.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c index fb52a36cdcf..4e731cda5f3 100644 --- a/source/blender/editors/space_file/file_panels.c +++ b/source/blender/editors/space_file/file_panels.c @@ -175,7 +175,9 @@ static void file_panel_operator(const bContext *C, Panel *pa) int empty= 1, flag; if(op->type->ui) { - op->type->ui((bContext*)C, op, pa->layout); + op->layout= pa->layout; + op->type->ui((bContext*)C, op); + op->layout= NULL; } else { RNA_STRUCT_BEGIN(op->ptr, prop) { |