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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user