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>2012-05-24 18:56:09 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2012-05-24 18:56:09 +0400
commitda67c969b38d748049ddd118a21fa046241739fe (patch)
treed866705bb0ecde30c6cd2f5f647d15b283e113fd /source/blender/collada/SceneExporter.cpp
parent09344fb1027a03158cf151ec45891ab339c478fc (diff)
Patch #31570: Implementation of 'Include bone children' Option
Diffstat (limited to 'source/blender/collada/SceneExporter.cpp')
-rw-r--r--source/blender/collada/SceneExporter.cpp37
1 files changed, 20 insertions, 17 deletions
diff --git a/source/blender/collada/SceneExporter.cpp b/source/blender/collada/SceneExporter.cpp
index cd36267fd56..f79ae2b52a9 100644
--- a/source/blender/collada/SceneExporter.cpp
+++ b/source/blender/collada/SceneExporter.cpp
@@ -79,25 +79,28 @@ void SceneExporter::writeNodes(Object *ob, Scene *sce)
bool is_skinned_mesh = arm_exporter->is_skinned_mesh(ob);
std::list<Object*> child_objects;
- // list child objects
- Base *b = (Base*) sce->base.first;
- while (b) {
- // cob - child object
- Object *cob = b->object;
-
- if (cob->parent == ob) {
- switch (cob->type) {
- case OB_MESH:
- case OB_CAMERA:
- case OB_LAMP:
- case OB_EMPTY:
- case OB_ARMATURE:
- child_objects.push_back(cob);
- break;
+
+ if (this->export_settings->include_bone_children) {
+ // list child objects
+ Base *b = (Base*) sce->base.first;
+ while (b) {
+ // cob - child object
+ Object *cob = b->object;
+
+ if (cob->parent == ob) {
+ switch (cob->type) {
+ case OB_MESH:
+ case OB_CAMERA:
+ case OB_LAMP:
+ case OB_EMPTY:
+ case OB_ARMATURE:
+ child_objects.push_back(cob);
+ break;
+ }
}
- }
- b = b->next;
+ b = b->next;
+ }
}