Fixed object-based rotation animation input/output. Still need to fix bone rotation...
[blender.git] / source / blender / collada / DocumentExporter.cpp
index 09db4ba062f6de1aa3b6d3e676efab7b5ffca08f..b10a95e641857bae0cbbf258a854463e483b988e 100644 (file)
@@ -1832,7 +1832,7 @@ public:
                std::string new_rna_path;
                
                if (strstr(rna_path, "rotation")) {
-                       new_rna_path = strstr(rna_path, "rotation");
+                       new_rna_path = "rotation";
                        return new_rna_path + axis_name;
                }
                else if (strstr(rna_path, "location")) {
@@ -2058,7 +2058,7 @@ public:
                                
                                if (!strcmp(fcu->rna_path, "location") ||
                                        !strcmp(fcu->rna_path, "scale") ||
-                                       !strcmp(fcu->rna_path, "rotation")) {
+                                       !strcmp(fcu->rna_path, "rotation_euler")) {
                                        
                                        add_animation(fcu, id_name(ob));
                                }