2.5: fix to allow python panels to override C panels with

the same name.
This commit is contained in:
2009-07-10 11:59:45 +00:00
parent 3496437585
commit 56d4501d91

View File

@@ -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;
}
}