[Bf-blender-cvs] [2922f9b83d4] master: Cleanup: remove TimeSourceNode->cfra which is never read
Jacques Lucke
noreply at git.blender.org
Tue Aug 18 15:40:39 CEST 2020
Commit: 2922f9b83d499f13cf77283677103e4efde0b5cf
Author: Jacques Lucke
Date: Tue Aug 18 15:40:15 2020 +0200
Branches: master
https://developer.blender.org/rB2922f9b83d499f13cf77283677103e4efde0b5cf
Cleanup: remove TimeSourceNode->cfra which is never read
===================================================================
M source/blender/depsgraph/intern/depsgraph_eval.cc
M source/blender/depsgraph/intern/node/deg_node_time.h
===================================================================
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;
More information about the Bf-blender-cvs
mailing list