Commit: ba116c8e9ce218f746fb2267515b1f50343367a1
Author: Gaia Clary
Date:   Sat Jan 28 21:51:18 2017 +0100
Branches: master
https://developer.blender.org/rBba116c8e9ce218f746fb2267515b1f50343367a1

fix D2489: Collada exporter broke edit data when exporting Armature while in 
Armature edit mode

===================================================================

M       source/blender/collada/ArmatureExporter.cpp

===================================================================

diff --git a/source/blender/collada/ArmatureExporter.cpp 
b/source/blender/collada/ArmatureExporter.cpp
index 35cf7dd762..9c26ba83b4 100644
--- a/source/blender/collada/ArmatureExporter.cpp
+++ b/source/blender/collada/ArmatureExporter.cpp
@@ -74,8 +74,7 @@ void ArmatureExporter::add_armature_bones(Object *ob_arm, 
Scene *sce,
        if (!is_edited)
                ED_armature_to_edit(armature);
 
-       bArmature *arm = (bArmature *)ob_arm->data;
-       for (Bone *bone = (Bone *)arm->bonebase.first; bone; bone = bone->next) 
{
+       for (Bone *bone = (Bone *)armature->bonebase.first; bone; bone = 
bone->next) {
                // start from root bones
                if (!bone->parent)
                        add_bone_node(bone, ob_arm, sce, se, child_objects);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to