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

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++;
}