Fix #115727: Draw panel buttons in the node editor side bar #116936
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue