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:
authorDalai Felinto <dfelinto@gmail.com>2017-03-29 22:55:04 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-04-04 18:45:55 +0300
commitfa317eb69c6e7f83cac329f209d7a76916754e76 (patch)
treec5986508e8fb5e92280e37f33efa8cbb3b8a0cab /source/blender/makesrna/intern/rna_scene_api.c
parent69f7b513b5395931d2ae146c43c0661f8c95732e (diff)
Fix collada exporting for Blender 2.8
Instead of exporting all the scene objects, I'm exporting the scene layer objects instead.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c
index 9b202120b82..37d9c0747fd 100644
--- a/source/blender/makesrna/intern/rna_scene_api.c
+++ b/source/blender/makesrna/intern/rna_scene_api.c
@@ -266,6 +266,7 @@ static void rna_Scene_alembic_export(
/* Note: This definition must match to the generated function call */
static void rna_Scene_collada_export(
Scene *scene,
+ bContext *C,
const char *filepath,
int apply_modifiers,
@@ -289,6 +290,7 @@ static void rna_Scene_collada_export(
int keep_bind_info)
{
collada_export(scene,
+ CTX_data_scene_layer(C),
filepath,
apply_modifiers,
@@ -432,6 +434,8 @@ void RNA_api_scene(StructRNA *srna)
"Keep Bind Info",
"Store bind pose information in custom bone properties for later use during Collada export");
+ RNA_def_function_flag(func, FUNC_USE_CONTEXT);
+
#endif
#ifdef WITH_ALEMBIC