Fix #115727: Draw panel buttons in the node editor side bar #116936

Merged
Lukas Tönne merged 4 commits from LukasTonne/blender:node-sidebar-panel-buttons into main 2024-01-16 13:38:07 +01:00
1 changed files with 0 additions and 25 deletions
Showing only changes of commit a701aa44dc - Show all commits

View File

@ -706,31 +706,6 @@ class NODE_PT_active_node_properties(Panel):
layout = self.layout
node = context.active_node
layout.template_node_inputs(node)
# # set "node" context pointer for the panel layout
# layout.context_pointer_set("node", node)
# if hasattr(node, "draw_buttons_ext"):
# node.draw_buttons_ext(context, layout, draw_panel_buttons=True)
# elif hasattr(node, "draw_buttons"):
# node.draw_buttons(context, layout, draw_panel_buttons=True)
# # XXX this could be filtered further to exclude socket types
# # which don't have meaningful input values (e.g. cycles shader)
# value_inputs = [socket for socket in node.inputs if self.show_socket_input(socket)]
# if value_inputs:
# layout.separator()
# layout.label(text="Inputs:")
# for socket in value_inputs:
# row = layout.row()
# socket.draw(
# context,
# row,
# node,
# iface_(socket.label if socket.label else socket.name, socket.bl_rna.translation_context),
# )
# def show_socket_input(self, socket):
# return hasattr(socket, "draw") and socket.enabled and not socket.is_linked
class NODE_PT_texture_mapping(Panel):