diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-31 11:42:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-31 11:45:00 +0300 |
commit | 732f70a151c47dc55e9da33c0bf346764bb54ab6 (patch) | |
tree | 2662364fdee1240178eb5a4f78767cd2dc250711 /source/blender/makesrna/intern/rna_ui.c | |
parent | 4f1b510d75aea996dcdc65dd147d9f798a50bc1c (diff) |
RNA: existing type check used wrong identifier
Own error in recent type checks, in many cases the 'idname'
is used for the struct identifier, not the 'identifier'
which is the Python class name in this context.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index 0fc0739f860..84e446ef330 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -229,7 +229,7 @@ static StructRNA *rna_Panel_register(Main *bmain, ReportList *reports, void *dat break; } } - if (!RNA_struct_available_or_report(reports, identifier)) { + if (!RNA_struct_available_or_report(reports, dummypt.idname)) { return NULL; } @@ -494,7 +494,7 @@ static StructRNA *rna_UIList_register(Main *bmain, ReportList *reports, void *da if (ult && ult->ext.srna) { rna_UIList_unregister(bmain, ult->ext.srna); } - if (!RNA_struct_available_or_report(reports, identifier)) { + if (!RNA_struct_available_or_report(reports, dummyult.idname)) { return NULL; } @@ -599,7 +599,7 @@ static StructRNA *rna_Header_register(Main *bmain, ReportList *reports, void *da break; } } - if (!RNA_struct_available_or_report(reports, identifier)) { + if (!RNA_struct_available_or_report(reports, dummyht.idname)) { return NULL; } @@ -725,7 +725,7 @@ static StructRNA *rna_Menu_register(Main *bmain, ReportList *reports, void *data if (mt && mt->ext.srna) { rna_Menu_unregister(bmain, mt->ext.srna); } - if (!RNA_struct_available_or_report(reports, identifier)) { + if (!RNA_struct_available_or_report(reports, dummymt.idname)) { return NULL; } |