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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-31 16:32:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-31 16:49:50 +0300
commit636baa598a5698d84eca89d17c67a74092cef4d0 (patch)
tree6c09f62384fd8a75698a73ec409c5139512025df /source/blender/makesrna/intern/rna_userdef.c
parent018137f76248ab85bbe2057ca5d67c55a559247b (diff)
RNA: Limit which classes struct-map contains
Only add subclasses of: Menu, Panel, Header, UIList, Operator This helps avoid unnecessary naming collisions, See T52599 for details
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 3ecacd11a5c..358d790e555 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -641,9 +641,6 @@ static StructRNA *rna_AddonPref_register(Main *bmain, ReportList *reports, void
if (apt && apt->ext.srna) {
rna_AddonPref_unregister(bmain, apt->ext.srna);
}
- if (!RNA_struct_available_or_report(reports, identifier)) {
- return NULL;
- }
/* create a new header type */
apt = MEM_mallocN(sizeof(bAddonPrefType), "addonpreftype");