Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2019-01-05 20:03:49 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2019-01-05 20:08:10 +0300
commit674d364af0b1bce68cefd3af22c4318ece1c9b01 (patch)
tree67f60671721c55ab6dbd436f8a64e0ac95891183 /source/blender/collada
parent9c928bb93e04f376ef6a9a84137a4109bbf7f7c0 (diff)
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.
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/ArmatureExporter.cpp2
1 files changed, 1 insertions, 1 deletions
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++;
}