diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-26 11:33:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-26 11:35:45 +0300 |
commit | f1bd96a9abc92defedcdfd9a0d57aa41277e8767 (patch) | |
tree | 059bb55548616867b054b2589684f2d2340d5eec /source | |
parent | 3fd5a4047ccac755b1924d5caa04d21f99119abb (diff) |
Revert "changing collada parameters"
This reverts commit d91f2ac37aa02d96a00d116fa55cdc9f55afd32c.
This change makes scene.collada_export() meaningless
(ignoring the scene the method is being run on).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/collada/collada.cpp | 3 | ||||
-rw-r--r-- | source/blender/collada/collada.h | 2 | ||||
-rw-r--r-- | source/blender/editors/io/io_collada.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene_api.c | 5 | ||||
-rw-r--r-- | source/blenderplayer/bad_level_call_stubs/stubs.c | 2 |
5 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp index 718ae1d876b..79f50888150 100644 --- a/source/blender/collada/collada.cpp +++ b/source/blender/collada/collada.cpp @@ -67,7 +67,7 @@ int collada_import(bContext *C, return 0; } -int collada_export(bContext *C, +int collada_export(Scene *sce, const char *filepath, int apply_modifiers, @@ -124,7 +124,6 @@ int collada_export(bContext *C, if (export_settings.include_children) includeFilter |= OB_REL_CHILDREN_RECURSIVE; eObjectSet objectSet = (export_settings.selected) ? OB_SET_SELECTED : OB_SET_ALL; - Scene *sce = CTX_data_scene(C); export_settings.export_set = BKE_object_relational_superset(sce, objectSet, (eObRelationTypes)includeFilter); int export_count = BLI_linklist_count(export_settings.export_set); diff --git a/source/blender/collada/collada.h b/source/blender/collada/collada.h index e546e1f1056..a8f082f630c 100644 --- a/source/blender/collada/collada.h +++ b/source/blender/collada/collada.h @@ -67,7 +67,7 @@ int collada_import(struct bContext *C, int keep_bind_info); -int collada_export(struct bContext *C, +int collada_export(struct Scene *sce, const char *filepath, int apply_modifiers, BC_export_mesh_type export_mesh_type, diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index 7f5442bbca4..3746ba3b64a 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -158,7 +158,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) ED_object_editmode_load(CTX_data_edit_object(C)); - export_count = collada_export(C, + export_count = collada_export(CTX_data_scene(C), filepath, apply_modifiers, export_mesh_type, diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index d641ee12366..7d95fbf4068 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -268,7 +268,7 @@ static void rna_Scene_alembic_export( /* Note: This definition must match to the generated function call */ static void rna_Scene_collada_export( - bContext *C, + Scene *scene, const char *filepath, int apply_modifiers, @@ -291,7 +291,7 @@ static void rna_Scene_collada_export( int limit_precision, int keep_bind_info) { - collada_export(C, + collada_export(scene, filepath, apply_modifiers, @@ -379,7 +379,6 @@ void RNA_api_scene(StructRNA *srna) #ifdef WITH_COLLADA /* don't remove this, as COLLADA exporting cannot be done through operators in render() callback. */ func = RNA_def_function(srna, "collada_export", "rna_Scene_collada_export"); - RNA_def_function_flag(func, FUNC_NO_SELF | FUNC_USE_CONTEXT); parm = RNA_def_string(func, "filepath", NULL, FILE_MAX, "File Path", "File path to write Collada file"); RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); RNA_def_property_subtype(parm, PROP_FILEPATH); /* allow non utf8 */ diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index f7afa5e0f2c..85ed589dd78 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -729,7 +729,7 @@ int UI_pie_menu_invoke_from_operator_enum(struct bContext *C, const char *title, /* RNA COLLADA dependency */ /* XXX (gaia) Why do we need this declaration here? */ /* The collada header is included anyways further up... */ -int collada_export(struct bContext *C, +int collada_export(struct Scene *sce, const char *filepath, int apply_modifiers, BC_export_mesh_type export_mesh_type, |