Fix compilation error of alembic test after recent eval_ctx changes
This commit is contained in:
@@ -27,6 +27,7 @@ set(INC
|
|||||||
../../../source/blender/blenlib
|
../../../source/blender/blenlib
|
||||||
../../../source/blender/alembic
|
../../../source/blender/alembic
|
||||||
../../../source/blender/makesdna
|
../../../source/blender/makesdna
|
||||||
|
../../../source/blender/depsgraph
|
||||||
${ALEMBIC_INCLUDE_DIRS}
|
${ALEMBIC_INCLUDE_DIRS}
|
||||||
${BOOST_INCLUDE_DIR}
|
${BOOST_INCLUDE_DIR}
|
||||||
${HDF5_INCLUDE_DIRS}
|
${HDF5_INCLUDE_DIRS}
|
||||||
|
@@ -10,11 +10,16 @@ extern "C" {
|
|||||||
#include "DNA_scene_types.h"
|
#include "DNA_scene_types.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "DEG_depsgraph.h"
|
||||||
|
|
||||||
class TestableAbcExporter : public AbcExporter {
|
class TestableAbcExporter : public AbcExporter {
|
||||||
public:
|
public:
|
||||||
TestableAbcExporter(Scene *scene, const char *filename, ExportSettings &settings)
|
TestableAbcExporter(Scene *scene, const char *filename, ExportSettings &settings)
|
||||||
: AbcExporter(scene, filename, settings)
|
: AbcExporter(&eval_ctx, scene, filename, settings)
|
||||||
{}
|
{
|
||||||
|
/* TODO(sergey): Pass scene layer somehow? */
|
||||||
|
DEG_evaluation_context_init(&eval_ctx, DAG_EVAL_VIEWPORT);
|
||||||
|
}
|
||||||
|
|
||||||
void getShutterSamples(unsigned int nr_of_samples,
|
void getShutterSamples(unsigned int nr_of_samples,
|
||||||
bool time_relative,
|
bool time_relative,
|
||||||
@@ -28,6 +33,7 @@ public:
|
|||||||
AbcExporter::getFrameSet(nr_of_samples, frames);
|
AbcExporter::getFrameSet(nr_of_samples, frames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EvaluationContext eval_ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user