diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-10 15:59:45 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-10 15:59:45 +0400 |
commit | 56d4501d91227b97884c8bf0736a249543fa4ce8 (patch) | |
tree | e7a5bb0f332ffafa20c46668fe88061c6c7695c3 /source/blender/makesrna/intern/rna_ui.c | |
parent | 3496437585c79d590b18d423d1b34d93f226f296 (diff) |
2.5: fix to allow python panels to override C panels with
the same name.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index 9da8c8b2df3..b10ca6c5e83 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -170,6 +170,8 @@ static StructRNA *rna_Panel_register(const bContext *C, ReportList *reports, voi if(strcmp(pt->idname, dummypt.idname) == 0) { if(pt->py_srna) rna_Panel_unregister(C, pt->py_srna); + else + BLI_freelinkN(&art->paneltypes, pt); break; } } |