Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-05 23:27:21 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-05 23:27:21 +0400
commita6d9a5a972595c898e596deb95eb683430621188 (patch)
tree0d51b5391d831c16aa7108095e6b5b1380d918ff /source/blender/collada/AnimationExporter.cpp
parent76ddf6d2ee97bf51290492d4c692dd8ca031182c (diff)
Code cleanup: warning fixes.
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r--source/blender/collada/AnimationExporter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp
index 4c20d1cf6c1..498ccb5709d 100644
--- a/source/blender/collada/AnimationExporter.cpp
+++ b/source/blender/collada/AnimationExporter.cpp
@@ -643,6 +643,8 @@ std::string AnimationExporter::create_source_from_fcurve(COLLADASW::InputSemanti
case COLLADASW::InputSemantic::OUT_TANGENT:
source.setAccessorStride(2);
break;
+ default:
+ break;
}
@@ -913,7 +915,7 @@ std::string AnimationExporter::get_light_param_sid(char *rna_path, int tm_type,
}
if (tm_name.size()) {
- if (axis_name != "")
+ if (axis_name[0])
return tm_name + "." + std::string(axis_name);
else
return tm_name;
@@ -962,7 +964,7 @@ std::string AnimationExporter::get_camera_param_sid(char *rna_path, int tm_type,
}
if (tm_name.size()) {
- if (axis_name != "")
+ if (axis_name[0])
return tm_name + "." + std::string(axis_name);
else
return tm_name;
@@ -1041,7 +1043,7 @@ std::string AnimationExporter::get_transform_sid(char *rna_path, int tm_type, co
if (is_rotation)
return tm_name + std::string(axis_name) + ".ANGLE";
else
- if (axis_name != "")
+ if (axis_name[0])
return tm_name + "." + std::string(axis_name);
else
return tm_name;