diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:09:41 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:09:41 +0300 |
commit | 8961ef09ec968f54cbca493295ca8381444317ed (patch) | |
tree | 83d906c64ace78f5fe3908e5b6e3d7a80674004e /source/blender/blenloader | |
parent | 3b446ed4e45fccc0e4a6fc998a28442b5429a209 (diff) |
Bugfix for Rotation Keyframe version patching:
Use strstr not strcmp, since RNA paths are not purely property names.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 5fda492728c..9d036d93831 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -10576,11 +10576,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main) /* 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); } } |