2.5: fix to allow python panels to override C panels with
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 10 Jul 2009 11:59:45 +0000 (11:59 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 10 Jul 2009 11:59:45 +0000 (11:59 +0000)
the same name.

source/blender/makesrna/intern/rna_ui.c

index 9da8c8b2df37972fde2b6da2792537606b1bf129..b10ca6c5e83c603abccb1fb9d0f68c7db69c6317 100644 (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;
                }
        }