[Bf-blender-cvs] [4c4fc39a822] collada: Cleanup: Added comment to clarify
Gaia Clary
noreply at git.blender.org
Wed Mar 28 21:30:21 CEST 2018
Commit: 4c4fc39a8229a9d830920da64eda117a2285f554
Author: Gaia Clary
Date: Sun Mar 4 17:53:01 2018 +0100
Branches: collada
https://developer.blender.org/rB4c4fc39a8229a9d830920da64eda117a2285f554
Cleanup: Added comment to clarify
The exporter does not export invisible and hidden objects!
This may cause issues. I added the comment to make this clear in
the code. This behavior may later be improved.
===================================================================
M source/blender/collada/collada.cpp
===================================================================
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp
index 8db2de6ba87..b9915a4ba0a 100644
--- a/source/blender/collada/collada.cpp
+++ b/source/blender/collada/collada.cpp
@@ -57,6 +57,9 @@ int collada_export(EvaluationContext *eval_ctx,
if (export_settings->include_armatures) includeFilter |= OB_REL_MOD_ARMATURE;
if (export_settings->include_children) includeFilter |= OB_REL_CHILDREN_RECURSIVE;
+ /* Fetch the complete set of exported objects
+ * ATTENTION: Invisible objects will not be exported
+ */
eObjectSet objectSet = (export_settings->selected) ? OB_SET_SELECTED : OB_SET_ALL;
export_settings->export_set = BKE_object_relational_superset(sce, objectSet, (eObRelationTypes)includeFilter);
int export_count = BLI_linklist_count(export_settings->export_set);
More information about the Bf-blender-cvs
mailing list