diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 14:02:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-03 14:02:39 +0300 |
commit | e72dfee66fe556dc09ae30e706a5d16d552a5413 (patch) | |
tree | 2c42fc11b387113a7cdc7abed82b96c4457ca6aa /source/blender/alembic/intern/alembic_capi.cc | |
parent | 3a7a7ed03b7611a29de0e2a27e358035aee83dce (diff) |
Depsgraph: Use explicit depsgraph in alembic module
Diffstat (limited to 'source/blender/alembic/intern/alembic_capi.cc')
-rw-r--r-- | source/blender/alembic/intern/alembic_capi.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc index 730a574e649..c8735df21d5 100644 --- a/source/blender/alembic/intern/alembic_capi.cc +++ b/source/blender/alembic/intern/alembic_capi.cc @@ -232,6 +232,7 @@ static void find_iobject(const IObject &object, IObject &ret, struct ExportJobData { EvaluationContext eval_ctx; Scene *scene; + Depsgraph *depsgraph; Main *bmain; char filename[1024]; @@ -263,7 +264,7 @@ static void export_startjob(void *customdata, short *stop, short *do_update, flo try { Scene *scene = data->scene; - AbcExporter exporter(data->bmain, &data->eval_ctx, scene, data->filename, data->settings); + AbcExporter exporter(data->bmain, &data->eval_ctx, scene, data->depsgraph, data->filename, data->settings); const int orig_frame = CFRA; @@ -315,6 +316,7 @@ bool ABC_export( CTX_data_eval_ctx(C, &job->eval_ctx); job->scene = scene; + job->depsgraph = CTX_data_depsgraph(C); job->bmain = CTX_data_main(C); job->export_ok = false; BLI_strncpy(job->filename, filepath, 1024); @@ -336,6 +338,7 @@ bool ABC_export( * hardcore refactoring. */ new (&job->settings) ExportSettings(); job->settings.scene = job->scene; + job->settings.depsgraph = job->depsgraph; /* Sybren: for now we only export the active scene layer. * Later in the 2.8 development process this may be replaced by using |