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:
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
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue