Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-08-18 16:40:15 +0300
committerJacques Lucke <jacques@blender.org>2020-08-18 16:40:29 +0300
commit2922f9b83d499f13cf77283677103e4efde0b5cf (patch)
treebc6ba1e25dae76ec83c8987a40a3c7c1703cf765 /source/blender/depsgraph
parent2e908156d0c744e526e165b386c61a0a4d0e8ed0 (diff)
Cleanup: remove TimeSourceNode->cfra which is never read
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_eval.cc4
-rw-r--r--source/blender/depsgraph/intern/node/deg_node_time.h3
2 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc
index 8a641f23a42..a11594a019c 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cc
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cc
@@ -53,8 +53,6 @@ void DEG_evaluate_on_refresh(Main *bmain, Depsgraph *graph)
deg::Depsgraph *deg_graph = reinterpret_cast<deg::Depsgraph *>(graph);
deg_graph->ctime = BKE_scene_frame_get(deg_graph->scene);
/* Update time on primary timesource. */
- deg::TimeSourceNode *tsrc = deg_graph->find_time_source();
- tsrc->cfra = deg_graph->ctime;
/* Update time in scene. */
if (deg_graph->scene_cow) {
BKE_scene_frame_set(deg_graph->scene_cow, deg_graph->ctime);
@@ -70,8 +68,6 @@ void DEG_evaluate_on_framechange(Main *bmain, Depsgraph *graph, float ctime)
deg::Depsgraph *deg_graph = reinterpret_cast<deg::Depsgraph *>(graph);
deg_graph->ctime = ctime;
/* Update time on primary timesource. */
- deg::TimeSourceNode *tsrc = deg_graph->find_time_source();
- tsrc->cfra = ctime;
deg_graph->need_update_time = true;
deg::deg_graph_flush_updates(bmain, deg_graph);
/* Update time in scene. */
diff --git a/source/blender/depsgraph/intern/node/deg_node_time.h b/source/blender/depsgraph/intern/node/deg_node_time.h
index 172a3873301..fe17684abb0 100644
--- a/source/blender/depsgraph/intern/node/deg_node_time.h
+++ b/source/blender/depsgraph/intern/node/deg_node_time.h
@@ -30,9 +30,6 @@ namespace deg {
/* Time Source Node. */
struct TimeSourceNode : public Node {
- /* New "current time". */
- float cfra;
-
// TODO: evaluate() operation needed
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;