diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-29 19:59:04 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-29 19:59:04 +0300 |
commit | baaf81e13edc2b25dee7af67f49e7a731d057513 (patch) | |
tree | 44041b77a79cd95a40685c869c38a47d0d10e37c /source/blender/depsgraph/intern | |
parent | 75eb219a2e21abe9c9909d76f85abbb538d8ef9f (diff) | |
parent | 5b5939c6e6494583a0c99f6dccb8ca8c617d204b (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc | 44 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc | 33 |
2 files changed, 24 insertions, 53 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc index 5f7dbb3dd84..408ec96f5fa 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc @@ -84,17 +84,13 @@ void DepsgraphNodeBuilder::build_view_layer(Scene *scene, scene_cow = scene; view_layer_cow = view_layer; } - - /* scene ID block */ + /* Scene ID block. */ add_id_node(&scene->id); - - /* timesource */ + /* Rimesource. */ add_time_source(); - /* Setup currently building context. */ scene_ = scene; - - /* scene objects */ + /* Scene objects. */ int select_color = 1; LINKLIST_FOREACH(Base *, base, &view_layer_cow->object_bases) { /* object itself */ @@ -104,60 +100,46 @@ void DepsgraphNodeBuilder::build_view_layer(Scene *scene, if (scene->camera != NULL) { build_object(NULL, scene->camera, DEG_ID_LINKED_INDIRECTLY); } - - /* rigidbody */ - if (scene->rigidbody_world) { + /* Rigidbody. */ + if (scene->rigidbody_world != NULL) { build_rigidbody(scene); } - - /* scene's animation and drivers */ - if (scene->adt) { + /* Scene's animation and drivers. */ + if (scene->adt != NULL) { build_animdata(&scene->id); } - - /* world */ - if (scene->world) { + /* World. */ + if (scene->world != NULL) { build_world(scene->world); } - - /* compo nodes */ - if (scene->nodetree) { + /* Compositor nodes */ + if (scene->nodetree != NULL) { build_compositor(scene); } - - /* sequencer */ - // XXX... - - /* grease pencil */ - if (scene->gpd) { + /* Grease pencil. */ + if (scene->gpd != NULL) { build_gpencil(scene->gpd); } - /* Cache file. */ LINKLIST_FOREACH (CacheFile *, cachefile, &bmain_->cachefiles) { build_cachefile(cachefile); } - /* Masks. */ LINKLIST_FOREACH (Mask *, mask, &bmain_->mask) { build_mask(mask); } - /* Movie clips. */ LINKLIST_FOREACH (MovieClip *, clip, &bmain_->movieclip) { build_movieclip(clip); } - /* Collections. */ build_view_layer_collections(scene_cow, view_layer_cow); - /* Parameters evaluation for scene relations mainly. */ add_operation_node(&scene->id, DEG_NODE_TYPE_PARAMETERS, NULL, DEG_OPCODE_PLACEHOLDER, "Scene Eval"); - /* Build all set scenes. */ if (scene->set != NULL) { ViewLayer *set_view_layer = BKE_view_layer_from_scene_get(scene->set); diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc index d23fdaacf08..2058fd37716 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc @@ -72,53 +72,43 @@ void DepsgraphRelationBuilder::build_view_layer(Scene *scene, ViewLayer *view_la { /* Setup currently building context. */ scene_ = scene; - - /* scene objects */ + /* Scene objects. */ LINKLIST_FOREACH(Base *, base, &view_layer->object_bases) { build_object(base, base->object); } if (scene->camera != NULL) { build_object(NULL, scene->camera); } - - /* rigidbody */ - if (scene->rigidbody_world) { + /* Rigidbody. */ + if (scene->rigidbody_world != NULL) { build_rigidbody(scene); } - - /* scene's animation and drivers */ - if (scene->adt) { + /* Scene's animation and drivers. */ + if (scene->adt != NULL) { build_animdata(&scene->id); } - - /* world */ - if (scene->world) { + /* World. */ + if (scene->world != NULL) { build_world(scene->world); } - - /* compo nodes */ - if (scene->nodetree) { + /* Compositor nodes. */ + if (scene->nodetree != NULL) { build_compositor(scene); } - - /* grease pencil */ - if (scene->gpd) { + /* Grease pencil. */ + if (scene->gpd != NULL) { build_gpencil(scene->gpd); } - /* Masks. */ LINKLIST_FOREACH (Mask *, mask, &bmain_->mask) { build_mask(mask); } - /* Movie clips. */ LINKLIST_FOREACH (MovieClip *, clip, &bmain_->movieclip) { build_movieclip(clip); } - /* Collections. */ build_view_layer_collections(view_layer); - /* TODO(sergey): Do this flush on CoW object? */ foreach (OperationDepsNode *node, graph_->operations) { IDDepsNode *id_node = node->owner->owner; @@ -128,7 +118,6 @@ void DepsgraphRelationBuilder::build_view_layer(Scene *scene, ViewLayer *view_la object->customdata_mask |= node->customdata_mask; } } - /* Build all set scenes. */ if (scene->set != NULL) { ViewLayer *set_view_layer = BKE_view_layer_from_scene_get(scene->set); |