Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder.cc
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| * Base class for builders. | * Base class for builders. | ||||
| */ | */ | ||||
| DepsgraphBuilder::DepsgraphBuilder(Main *bmain, Depsgraph *graph, DepsgraphBuilderCache *cache) | DepsgraphBuilder::DepsgraphBuilder(Main *bmain, Depsgraph *graph, DepsgraphBuilderCache *cache) | ||||
| : bmain_(bmain), graph_(graph), cache_(cache) | : bmain_(bmain), graph_(graph), cache_(cache) | ||||
| { | { | ||||
| } | } | ||||
| DepsgraphBuilder::~DepsgraphBuilder() | |||||
| { | |||||
| } | |||||
| bool DepsgraphBuilder::need_pull_base_into_graph(Base *base) | bool DepsgraphBuilder::need_pull_base_into_graph(Base *base) | ||||
| { | { | ||||
| /* Simple check: enabled bases are always part of dependency graph. */ | /* Simple check: enabled bases are always part of dependency graph. */ | ||||
| const int base_flag = (graph_->mode == DAG_EVAL_VIEWPORT) ? BASE_ENABLED_VIEWPORT : | const int base_flag = (graph_->mode == DAG_EVAL_VIEWPORT) ? BASE_ENABLED_VIEWPORT : | ||||
| BASE_ENABLED_RENDER; | BASE_ENABLED_RENDER; | ||||
| if (base->flag & base_flag) { | if (base->flag & base_flag) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines | |||||