fix T60092 collada exporter: exporting a rig with one single bone fails

The problem was that removing entries from a vetor while iterating
the vector was implemented badly. This caused the failure when only
one element was in vector.
This commit is contained in:
Gaia Clary 2019-01-05 18:03:49 +01:00
parent 9c928bb93e
commit 674d364af0
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #60240, Crash while working on drivers
Referenced by issue #60092, Can't export .dae when control bones exist
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void ArmatureExporter::add_bone_node(
se->writeNodes(*i);
copy_m4_m4((*i)->parentinv, backup_parinv);
child_objects.erase(i++);
i = child_objects.erase(i);
}
else i++;
}