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

This commit is contained in:
Gaia Clary 2017-01-28 21:51:18 +01:00
parent c64c901535
commit ba116c8e9c
Notes: blender-bot 2023-02-14 07:23:27 +01:00
Referenced by issue #50117, Hard crash when adding texture input node to compositor.
1 changed files with 1 additions and 2 deletions

View File

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