Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_node.py
| Show First 20 Lines • Show All 791 Lines • ▼ Show 20 Lines | def draw_socket_list(self, context, in_out, sockets_propname, active_socket_propname): | ||||
| "NodeSocketVector", | "NodeSocketVector", | ||||
| "NodeSocketBool", | "NodeSocketBool", | ||||
| "NodeSocketFloat", | "NodeSocketFloat", | ||||
| } | } | ||||
| is_field_type = any( | is_field_type = any( | ||||
| active_socket.bl_socket_idname.startswith(prefix) | active_socket.bl_socket_idname.startswith(prefix) | ||||
| for prefix in field_socket_prefixes | for prefix in field_socket_prefixes | ||||
| ) | ) | ||||
| if in_out == 'OUT' and is_field_type: | if is_field_type: | ||||
| if in_out == 'OUT': | |||||
| layout.prop(active_socket, "attribute_domain") | layout.prop(active_socket, "attribute_domain") | ||||
| layout.prop(active_socket, "default_attribute_name") | |||||
| active_socket.draw(context, layout) | active_socket.draw(context, layout) | ||||
| class NODE_PT_node_tree_interface_inputs(NodeTreeInterfacePanel, Panel): | class NODE_PT_node_tree_interface_inputs(NodeTreeInterfacePanel, Panel): | ||||
| bl_space_type = 'NODE_EDITOR' | bl_space_type = 'NODE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_category = "Group" | bl_category = "Group" | ||||
| bl_label = "Inputs" | bl_label = "Inputs" | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||