Style Cleanup for r.58659
authorJoshua Leung <aligorith@gmail.com>
Sat, 27 Jul 2013 11:54:52 +0000 (11:54 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 27 Jul 2013 11:54:52 +0000 (11:54 +0000)
Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax

source/blender/editors/animation/keyframes_general.c

index 915cf409dcfa3e4ca274d2208655b5b107deedee..cfa5f9f032cc03698533203a34323919760b056e 100644 (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);