[Bf-blender-cvs] [674d364af0b] master: fix T60092 collada exporter: exporting a rig with one single bone fails
Gaia Clary
noreply at git.blender.org
Sat Jan 5 18:16:34 CET 2019
Commit: 674d364af0b1bce68cefd3af22c4318ece1c9b01
Author: Gaia Clary
Date: Sat Jan 5 18:03:49 2019 +0100
Branches: master
https://developer.blender.org/rB674d364af0b1bce68cefd3af22c4318ece1c9b01
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.
===================================================================
M source/blender/collada/ArmatureExporter.cpp
===================================================================
diff --git a/source/blender/collada/ArmatureExporter.cpp b/source/blender/collada/ArmatureExporter.cpp
index 055ffc39e9a..fea65631b38 100644
--- a/source/blender/collada/ArmatureExporter.cpp
+++ b/source/blender/collada/ArmatureExporter.cpp
@@ -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++;
}
More information about the Bf-blender-cvs
mailing list