Depsgraph: remove EvaluationContext, pass Depsgraph instead.
[blender.git] / source / blender / collada / GeometryExporter.cpp
index 8dbee607b013dee6a763df0b0d3599c7359dd9a2..87b473535968b4aef4b4b91ad3ce40d3072baf68 100644 (file)
@@ -57,11 +57,11 @@ GeometryExporter::GeometryExporter(COLLADASW::StreamWriter *sw, const ExportSett
 {
 }
 
-void GeometryExporter::exportGeom(const struct EvaluationContext *eval_ctx, Scene *sce)
+void GeometryExporter::exportGeom(struct Depsgraph *depsgraph, Scene *sce)
 {
        openLibrary();
 
-       mEvalCtx = eval_ctx;
+       mDepsgraph = depsgraph;
        mScene = sce;
        GeometryFunctor gf;
        gf.forEachMeshObjectInExportSet<GeometryExporter>(sce, *this, this->export_settings->export_set);
@@ -77,7 +77,7 @@ void GeometryExporter::operator()(Object *ob)
 #endif
 
        bool use_instantiation = this->export_settings->use_object_instantiation;
-       Mesh *me = bc_get_mesh_copy(mEvalCtx, mScene, 
+       Mesh *me = bc_get_mesh_copy(mDepsgraph, mScene, 
                                        ob,
                                        this->export_settings->export_mesh_type,
                                        this->export_settings->apply_modifiers,