Cleanup: Remove more no-op node preview code
This is a follow-up to rB43875e8dd1d76ee, removing some processing of non-existent node previews in the shader and texture nodes systems.
This commit is contained in:
parent
eac6aff741
commit
c27d0cb7b9
|
@ -148,16 +148,6 @@ static void localize(bNodeTree *localtree, bNodeTree *UNUSED(ntree))
|
|||
}
|
||||
}
|
||||
|
||||
static void local_sync(bNodeTree *localtree, bNodeTree *ntree)
|
||||
{
|
||||
BKE_node_preview_sync_tree(ntree, localtree);
|
||||
}
|
||||
|
||||
static void local_merge(Main *UNUSED(bmain), bNodeTree *localtree, bNodeTree *ntree)
|
||||
{
|
||||
BKE_node_preview_merge_tree(ntree, localtree, true);
|
||||
}
|
||||
|
||||
static void update(bNodeTree *ntree)
|
||||
{
|
||||
ntreeSetOutput(ntree);
|
||||
|
@ -202,8 +192,6 @@ void register_node_tree_type_sh(void)
|
|||
|
||||
tt->foreach_nodeclass = foreach_nodeclass;
|
||||
tt->localize = localize;
|
||||
tt->local_sync = local_sync;
|
||||
tt->local_merge = local_merge;
|
||||
tt->update = update;
|
||||
tt->poll = shader_tree_poll;
|
||||
tt->get_from_context = shader_get_from_context;
|
||||
|
|
|
@ -132,16 +132,6 @@ static void localize(bNodeTree *UNUSED(localtree), bNodeTree *UNUSED(ntree))
|
|||
}
|
||||
#endif
|
||||
|
||||
static void local_sync(bNodeTree *localtree, bNodeTree *ntree)
|
||||
{
|
||||
BKE_node_preview_sync_tree(ntree, localtree);
|
||||
}
|
||||
|
||||
static void local_merge(Main *UNUSED(bmain), bNodeTree *localtree, bNodeTree *ntree)
|
||||
{
|
||||
BKE_node_preview_merge_tree(ntree, localtree, true);
|
||||
}
|
||||
|
||||
static void update(bNodeTree *ntree)
|
||||
{
|
||||
ntree_update_reroute_nodes(ntree);
|
||||
|
@ -175,8 +165,6 @@ void register_node_tree_type_tex(void)
|
|||
tt->foreach_nodeclass = foreach_nodeclass;
|
||||
tt->update = update;
|
||||
tt->localize = localize;
|
||||
tt->local_sync = local_sync;
|
||||
tt->local_merge = local_merge;
|
||||
tt->get_from_context = texture_get_from_context;
|
||||
tt->valid_socket_type = texture_node_tree_socket_type_valid;
|
||||
|
||||
|
|
Loading…
Reference in New Issue