[Bf-blender-cvs] [ba116c8e9c] master: fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode

Gaia Clary noreply at git.blender.org
Sat Jan 28 22:11:00 CET 2017


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);




More information about the Bf-blender-cvs mailing list