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>2018-02-26 18:49:06 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-02-26 19:18:31 +0300
commit7dd0e36dc4582e57a3f5235f384b5207882c923e (patch)
tree5d2335cf3e1fe59e7431056f42a9959f511ec37d /source/blender/editors/io
parenta024da55af09fb75e3b72489a8696878909bf676 (diff)
simplified collada integration in Blender. made functions mostly similar with blender2.8
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r--source/blender/editors/io/io_collada.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c
index 35b73065843..8826dc2971d 100644
--- a/source/blender/editors/io/io_collada.c
+++ b/source/blender/editors/io/io_collada.c
@@ -36,6 +36,7 @@
#include "BLI_utildefines.h"
#include "BKE_context.h"
+#include "BKE_depsgraph.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_report.h"
@@ -164,8 +165,11 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
/* get editmode results */
ED_object_editmode_load(CTX_data_edit_object(C));
+ EvaluationContext *eval_ctx = G.main->eval_ctx;
+ Scene *scene = CTX_data_scene(C);
- export_count = collada_export(CTX_data_scene(C),
+ export_count = collada_export(eval_ctx,
+ scene,
filepath,
apply_modifiers,
export_mesh_type,