Compositor: UI: remove preview for viewer and composite nodes

In geometry nodes, the viewer gets activated by clicking on the preview icon. For the compositor, preview is enabled either using the image viewer or the backdrop.

Another difference is that all nodes can be previewed in the compositor. Which makes the preview icon on the composite and viewer node redundant.

Pull Request: https://projects.blender.org/blender/blender/pulls/127044
This commit is contained in:
Habib Gahbiche
2024-09-05 19:52:07 +02:00
committed by Habib Gahbiche
parent 5a99d5d3fc
commit ed13dad08b
2 changed files with 0 additions and 2 deletions

View File

@@ -290,7 +290,6 @@ void register_node_type_cmp_composite()
ntype.declare = file_ns::cmp_node_composite_declare;
ntype.draw_buttons = file_ns::node_composit_buts_composite;
ntype.get_compositor_operation = file_ns::get_compositor_operation;
ntype.flag |= NODE_PREVIEW;
ntype.no_muting = true;
blender::bke::node_register_type(&ntype);

View File

@@ -318,7 +318,6 @@ void register_node_type_cmp_viewer()
cmp_node_type_base(&ntype, CMP_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT);
ntype.declare = file_ns::cmp_node_viewer_declare;
ntype.draw_buttons = file_ns::node_composit_buts_viewer;
ntype.flag |= NODE_PREVIEW;
ntype.initfunc = file_ns::node_composit_init_viewer;
blender::bke::node_type_storage(
&ntype, "ImageUser", node_free_standard_storage, node_copy_standard_storage);