diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-03-29 22:55:04 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-04-04 18:45:55 +0300 |
commit | fa317eb69c6e7f83cac329f209d7a76916754e76 (patch) | |
tree | c5986508e8fb5e92280e37f33efa8cbb3b8a0cab /source/blender/makesrna/intern/rna_scene_api.c | |
parent | 69f7b513b5395931d2ae146c43c0661f8c95732e (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.c | 4 |
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 |