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-06-16 02:00:25 +0400
committerGaia Clary <gaia.clary@machinimatrix.org>2012-06-16 02:00:25 +0400
commit9f6a66d5f9feb34377cf0e6465020cc80f673d8e (patch)
tree769bcd7da9a8f762f4a12dbb6206380703f8805b /source/blender/collada/collada.cpp
parenta2d4fddfd38ce0795d21ec9c5b5cc51fc50f3bd1 (diff)
Collada: (Exporter) Add new option 'deform bones only'
Diffstat (limited to 'source/blender/collada/collada.cpp')
-rw-r--r--source/blender/collada/collada.cpp30
1 files changed, 18 insertions, 12 deletions
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp
index 9a4fd44b9e9..5b970c236a4 100644
--- a/source/blender/collada/collada.cpp
+++ b/source/blender/collada/collada.cpp
@@ -50,17 +50,19 @@ int collada_import(bContext *C, const char *filepath)
}
int collada_export(
- Scene *sce,
- const char *filepath,
- int selected,
- int apply_modifiers,
+ Scene *sce,
+ const char *filepath,
- int include_armatures,
- int include_children,
+ int apply_modifiers,
- int use_object_instantiation,
+ int selected,
+ int include_children,
+ int include_armatures,
+ int deform_bones_only,
+
+ int use_object_instantiation,
int sort_by_name,
- int second_life)
+ int second_life)
{
ExportSettings export_settings;
@@ -73,15 +75,19 @@ int collada_export(
}
/* end! */
+ export_settings.filepath = (char *)filepath;
- export_settings.selected = selected != 0;
export_settings.apply_modifiers = apply_modifiers != 0;
+
+ export_settings.selected = selected != 0;
+ export_settings.include_children = include_children != 0;
export_settings.include_armatures = include_armatures != 0;
- export_settings.include_children = include_children != 0;
- export_settings.second_life = second_life != 0;
+ export_settings.deform_bones_only = deform_bones_only != 0;
+
export_settings.use_object_instantiation = use_object_instantiation != 0;
export_settings.sort_by_name = sort_by_name != 0;
- export_settings.filepath = (char *)filepath;
+ export_settings.second_life = second_life != 0;
+
int includeFilter = OB_REL_NONE;
if (export_settings.include_armatures) includeFilter |= OB_REL_MOD_ARMATURE;