Style Cleanup for r.58659

Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax
This commit is contained in:
Joshua Leung
2013-07-27 11:54:52 +00:00
parent f83d733a62
commit 59fabbb4f7

View File

@@ -628,8 +628,8 @@ static tAnimCopybufItem *pastebuf_match_path_property(FCurve *fcu, const short f
PropertyRNA *prop;
RNA_id_pointer_create(aci->id, &id_ptr);
if (RNA_path_resolve(&id_ptr, aci->rna_path, &rptr, &prop) && prop) {
if (RNA_path_resolve_property(&id_ptr, aci->rna_path, &rptr, &prop)) {
const char *identifier = RNA_property_identifier(prop);
int len_id = strlen(identifier);
int len_path = strlen(fcu->rna_path);