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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-10 15:59:45 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-10 15:59:45 +0400
commit56d4501d91227b97884c8bf0736a249543fa4ce8 (patch)
treee7a5bb0f332ffafa20c46668fe88061c6c7695c3 /source
parent3496437585c79d590b18d423d1b34d93f226f296 (diff)
2.5: fix to allow python panels to override C panels with
the same name.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_ui.c2
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;
}
}