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.
This commit is contained in:
2021-07-31 00:15:24 +10:00
parent 4c3d4ebefc
commit e7e9364d23

View File

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