From 25d0720dc471926f63a628dc1d24d851c550ceaa Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 8 Apr 2009 18:45:41 +0000 Subject: 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. --- source/blender/blenkernel/BKE_screen.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_screen.h') 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 */ -- cgit v1.2.3