Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Show First 20 Lines • Show All 1,356 Lines • ▼ Show 20 Lines | case SOCK_IMAGE: { | ||||
| break; | break; | ||||
| } | } | ||||
| default: { | default: { | ||||
| if (input_has_attribute_toggle(*nmd->node_group, socket_index)) { | if (input_has_attribute_toggle(*nmd->node_group, socket_index)) { | ||||
| add_attribute_search_or_value_buttons(C, layout, *nmd, md_ptr, socket); | add_attribute_search_or_value_buttons(C, layout, *nmd, md_ptr, socket); | ||||
| } | } | ||||
| else { | else { | ||||
| uiLayout *row = uiLayoutRow(layout, false); | uiLayout *row = uiLayoutRow(layout, false); | ||||
| uiLayoutSetPropDecorate(row, true); | |||||
| uiItemR(row, md_ptr, rna_path, 0, socket.name, ICON_NONE); | uiItemR(row, md_ptr, rna_path, 0, socket.name, ICON_NONE); | ||||
| uiItemDecoratorR(row, md_ptr, rna_path, 0); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void draw_property_for_output_socket(const bContext &C, | static void draw_property_for_output_socket(const bContext &C, | ||||
| uiLayout *layout, | uiLayout *layout, | ||||
| const NodesModifierData &nmd, | const NodesModifierData &nmd, | ||||
| ▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines | |||||