Depsgraph: Remove dead code from add_time_source()
This was never finished or done or used, no reason to keep it. Better to simplify things before adding complexity of overrides and copy-on-write.
This commit is contained in:
@@ -170,44 +170,13 @@ IDDepsNode *DepsgraphNodeBuilder::add_id_node(ID *id)
|
||||
return m_graph->add_id_node(id, id->name);
|
||||
}
|
||||
|
||||
TimeSourceDepsNode *DepsgraphNodeBuilder::add_time_source(ID *id)
|
||||
TimeSourceDepsNode *DepsgraphNodeBuilder::add_time_source()
|
||||
{
|
||||
/* determine which node to attach timesource to */
|
||||
if (id) {
|
||||
#if 0 /* XXX TODO */
|
||||
/* get ID node */
|
||||
IDDepsNode id_node = m_graph->find_id_node(id);
|
||||
|
||||
/* depends on what this is... */
|
||||
switch (GS(id->name)) {
|
||||
case ID_SCE: /* Scene - Usually sequencer strip causing time remapping... */
|
||||
{
|
||||
// TODO...
|
||||
}
|
||||
break;
|
||||
|
||||
case ID_GR: /* Group */
|
||||
{
|
||||
// TODO...
|
||||
}
|
||||
break;
|
||||
|
||||
// XXX: time source...
|
||||
|
||||
default: /* Unhandled */
|
||||
printf("%s(): Unhandled ID - %s \n", __func__, id->name);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
/* root-node */
|
||||
RootDepsNode *root_node = m_graph->root_node;
|
||||
if (root_node != NULL) {
|
||||
return root_node->add_time_source("Time Source");
|
||||
}
|
||||
else {
|
||||
/* root-node */
|
||||
RootDepsNode *root_node = m_graph->root_node;
|
||||
if (root_node) {
|
||||
return root_node->add_time_source("Time Source");
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ struct DepsgraphNodeBuilder {
|
||||
|
||||
RootDepsNode *add_root_node();
|
||||
IDDepsNode *add_id_node(ID *id);
|
||||
TimeSourceDepsNode *add_time_source(ID *id);
|
||||
TimeSourceDepsNode *add_time_source();
|
||||
|
||||
ComponentDepsNode *add_component_node(ID *id,
|
||||
eDepsNode_Type comp_type,
|
||||
|
||||
@@ -69,7 +69,7 @@ void DepsgraphNodeBuilder::build_scene(Main *bmain, Scene *scene)
|
||||
add_id_node(&scene->id);
|
||||
|
||||
/* timesource */
|
||||
add_time_source(NULL);
|
||||
add_time_source();
|
||||
|
||||
/* build subgraph for set, and link this in... */
|
||||
// XXX: depending on how this goes, that scene itself could probably store its
|
||||
|
||||
Reference in New Issue
Block a user