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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-01-11 23:03:15 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-01-11 23:14:39 +0300
commit7a1dc205607a637e92bb5bac23dfb184472d49cb (patch)
tree1ce44343361e5cc6f98bc82560370147650a55d7 /source/blender/collada/ArmatureImporter.cpp
parent1b3b01135475d0f0edbc39e78fbe5da77b836b67 (diff)
Cleanup: quite some harmless but noisy warnings from gcc...
Diffstat (limited to 'source/blender/collada/ArmatureImporter.cpp')
-rw-r--r--source/blender/collada/ArmatureImporter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/collada/ArmatureImporter.cpp b/source/blender/collada/ArmatureImporter.cpp
index bdfb7021370..7ffd300c6de 100644
--- a/source/blender/collada/ArmatureImporter.cpp
+++ b/source/blender/collada/ArmatureImporter.cpp
@@ -53,8 +53,7 @@ static const char *bc_get_joint_name(T *node)
static EditBone *get_edit_bone(bArmature * armature, char *name) {
EditBone *eBone;
- eBone = (EditBone *)armature->edbo->first;
- for (eBone; eBone; eBone = eBone->next) {
+ for (eBone = (EditBone *)armature->edbo->first; eBone; eBone = eBone->next) {
if (!strcmp(name, eBone->name))
return eBone;
}
@@ -259,7 +258,7 @@ void ArmatureImporter::connect_bone_chains(bArmature *armature, Bone *parentbone
Bone *child = (Bone *)parentbone->childbase.first;
if (child && (import_settings->find_chains || child->next==NULL) )
{
- for (child; child; child = child->next) {
+ for (; child; child = child->next) {
BoneExtended *be = extended_bones[child->name];
if (be != NULL) {
if (be->get_chain_length() <= clip) {