[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26244] trunk/blender/source/blender/ blenloader/intern/readfile.c: Bugfix for Rotation Keyframe version patching :
Joshua Leung
aligorith at gmail.com
Mon Jan 25 12:09:41 CET 2010
Revision: 26244
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26244
Author: aligorith
Date: 2010-01-25 12:09:41 +0100 (Mon, 25 Jan 2010)
Log Message:
-----------
Bugfix for Rotation Keyframe version patching:
Use strstr not strcmp, since RNA paths are not purely property names.
Modified Paths:
--------------
trunk/blender/source/blender/blenloader/intern/readfile.c
Modified: trunk/blender/source/blender/blenloader/intern/readfile.c
===================================================================
--- trunk/blender/source/blender/blenloader/intern/readfile.c 2010-01-25 11:06:55 UTC (rev 26243)
+++ trunk/blender/source/blender/blenloader/intern/readfile.c 2010-01-25 11:09:41 UTC (rev 26244)
@@ -10576,11 +10576,11 @@
/* convert over named properties with PROP_UNIT_ROTATION time of this change */
for (fcu=act->curves.first; fcu; fcu=fcu->next) {
- if (strcmp(fcu->rna_path, "rotation_euler")==0)
+ if (strstr(fcu->rna_path, "rotation_euler")==0)
do_version_fcurve_radians_degrees_250(fcu);
- else if (strcmp(fcu->rna_path, "delta_rotation_euler")==0)
+ else if (strstr(fcu->rna_path, "delta_rotation_euler")==0)
do_version_fcurve_radians_degrees_250(fcu);
- else if (strcmp(fcu->rna_path, "pole_angle")==0)
+ else if (strstr(fcu->rna_path, "pole_angle")==0)
do_version_fcurve_radians_degrees_250(fcu);
}
}
More information about the Bf-blender-cvs
mailing list