diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-08 22:45:41 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-04-08 22:45:41 +0400 |
commit | 25d0720dc471926f63a628dc1d24d851c550ceaa (patch) | |
tree | 4d7ba9a2a13d6514f8c8e7a41c8605a3813cab50 /source/blender/blenkernel/BKE_screen.h | |
parent | d979085614629c05f87715f1cc78bb2640498a21 (diff) |
2.5:
* Fix to make python panels callbacks get the actual
blender Panel as an argument, instead of any instance.
* Fix for callback validation in python 2.5, worked OK
in python 3.0 but gave error in 2.5 because it's a
method instead of a function there.
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index a25a7cff51d..e43b2b3b737 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -44,6 +44,7 @@ struct wmWindow; struct wmWindowManager; struct uiLayout; struct uiMenuItem; +struct StructRNA; /* spacetype has everything stored to get an editor working, it gets initialized via ED_spacetypes_init() in editors/area/spacetypes.c */ @@ -152,7 +153,8 @@ typedef struct PanelType { void (*draw)(const struct bContext *, struct Panel *); /* python integration */ - void *py_data; + void *py_data; + struct StructRNA *srna; } PanelType; /* header types */ |