diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-16 13:16:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-16 13:16:24 +0400 |
commit | 664c95d1ebf525b6daf15dc599c85f14ab58155d (patch) | |
tree | 777f806b955e7494fafe6db9265617c41cb822d0 /source/blender/collada/ArmatureExporter.cpp | |
parent | 9f6a66d5f9feb34377cf0e6465020cc80f673d8e (diff) |
code cleanup: collada
- when bubble sorting names - dont convert to str::string just to compare strings
- use BLI_linklist_index() to check if an item is in the list
- quiet some warnings
Diffstat (limited to 'source/blender/collada/ArmatureExporter.cpp')
-rw-r--r-- | source/blender/collada/ArmatureExporter.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/collada/ArmatureExporter.cpp b/source/blender/collada/ArmatureExporter.cpp index 8301066edaf..8842a4b1ac5 100644 --- a/source/blender/collada/ArmatureExporter.cpp +++ b/source/blender/collada/ArmatureExporter.cpp @@ -83,7 +83,7 @@ bool ArmatureExporter::is_skinned_mesh(Object *ob) void ArmatureExporter::write_bone_URLs(COLLADASW::InstanceController &ins, Object *ob_arm, Bone *bone) { - if ( bc_is_root_bone(bone, this->export_settings->deform_bones_only) ) + if (bc_is_root_bone(bone, this->export_settings->deform_bones_only)) ins.addSkeleton(COLLADABU::URI(COLLADABU::Utils::EMPTY_STRING, get_joint_id(bone, ob_arm))); else { for (Bone *child = (Bone *)bone->childbase.first; child; child = child->next) { @@ -187,9 +187,12 @@ void ArmatureExporter::add_bone_node(Bone *bone, Object *ob_arm, Scene *sce, node.setNodeName(node_name); node.setNodeSid(node_sid); - /*if ( bone->childbase.first == NULL || BLI_countlist(&(bone->childbase))>=2) +#if 0 + if (bone->childbase.first == NULL || BLI_countlist(&(bone->childbase)) >= 2) { add_blender_leaf_bone( bone, ob_arm , node ); - else{*/ + } + else { +#endif node.start(); add_bone_transform(ob_arm, bone, node); |