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:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user