[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58661] trunk/blender/source/blender/ editors/animation/keyframes_general.c: Style Cleanup for r.58659

Joshua Leung aligorith at gmail.com
Sat Jul 27 13:54:52 CEST 2013


Revision: 58661
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58661
Author:   aligorith
Date:     2013-07-27 11:54:52 +0000 (Sat, 27 Jul 2013)
Log Message:
-----------
Style Cleanup for r.58659

Use proper RNA API function that was designed to be used in this case instead of
using ugly syntax

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyframes_general.c

Modified: trunk/blender/source/blender/editors/animation/keyframes_general.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframes_general.c	2013-07-27 10:32:27 UTC (rev 58660)
+++ trunk/blender/source/blender/editors/animation/keyframes_general.c	2013-07-27 11:54:52 UTC (rev 58661)
@@ -628,8 +628,8 @@
 				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);




More information about the Bf-blender-cvs mailing list