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>2021-07-30 17:15:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-30 17:23:23 +0300
commite7e9364d23b14aad07d167cea00c2bd54bedfb07 (patch)
tree36939b4ff899b69a2a5d4cc08b34ea9c89be6444
parent4c3d4ebefc8ac79911837b014c6dbb3e053e5dbe (diff)
Cleanup: remove disabled code from property lookup
This allowed custom ID-properties to share a name-space with regular properties which won't work well as the names may collide.
-rw-r--r--source/blender/makesrna/intern/rna_rna.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index b080e572fa2..f714987fc05 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -458,29 +458,6 @@ int rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key, Point
}
}
} while ((srna = srna->base));
-
- /* this was used pre 2.5beta0, now ID property access uses python's
- * getitem style access
- * - ob["foo"] rather than ob.foo */
-# if 0
- if (ptr->data) {
- IDProperty *group, *idp;
-
- group = RNA_struct_idprops(ptr, 0);
-
- if (group) {
- for (idp = group->data.group.first; idp; idp = idp->next) {
- if (STREQ(idp->name, key)) {
- propptr.type = &RNA_Property;
- propptr.data = idp;
-
- *r_ptr = propptr;
- return true;
- }
- }
- }
- }
-# endif
return false;
}