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:
authorGaia Clary <gaia.clary@machinimatrix.org>2017-01-28 23:51:18 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2017-01-29 00:10:20 +0300
commitba116c8e9ce218f746fb2267515b1f50343367a1 (patch)
tree278316b67d0b433e2b295af6333a09c641f972e8 /source/blender/collada
parentc64c901535505db3087b621b7d2ccf14a28c2683 (diff)
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/ArmatureExporter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/collada/ArmatureExporter.cpp b/source/blender/collada/ArmatureExporter.cpp
index 35cf7dd7622..9c26ba83b44 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);