diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:15:04 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:15:04 +0300 |
commit | aab5a7a4af19335f07231b30f86df8d2fc7bc9e7 (patch) | |
tree | 630e884414f70f33a99cf0e233e50bf1964adc91 /source/blender/blenloader | |
parent | 8961ef09ec968f54cbca493295ca8381444317ed (diff) |
Bleh... second attempt at getting this right!
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9d036d93831..cb17b3332b7 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -10555,7 +10555,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) /* do it here, slightly less chance of getting a false positive */ for (fcu=adt->action->curves.first; fcu; fcu=fcu->next) { - if (strcmp(fcu->rna_path, "minimum_x")==0) + if (strstr(fcu->rna_path, "minimum_x")) do_version_fcurve_radians_degrees_250(fcu); } @@ -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 (strstr(fcu->rna_path, "rotation_euler")==0) + if (strstr(fcu->rna_path, "rotation_euler")) do_version_fcurve_radians_degrees_250(fcu); - else if (strstr(fcu->rna_path, "delta_rotation_euler")==0) + else if (strstr(fcu->rna_path, "delta_rotation_euler")) do_version_fcurve_radians_degrees_250(fcu); - else if (strstr(fcu->rna_path, "pole_angle")==0) + else if (strstr(fcu->rna_path, "pole_angle")) do_version_fcurve_radians_degrees_250(fcu); } } |