Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Context not available. | |||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayoutSetPropDecorate(layout, true); | uiLayoutSetPropDecorate(layout, true); | ||||
| bool has_output_attribute = false; | |||||
| if (nmd->node_group != nullptr && nmd->settings.properties != nullptr) { | if (nmd->node_group != nullptr && nmd->settings.properties != nullptr) { | ||||
| LISTBASE_FOREACH (bNodeSocket *, socket, &nmd->node_group->outputs) { | LISTBASE_FOREACH (bNodeSocket *, socket, &nmd->node_group->outputs) { | ||||
| if (socket_type_has_attribute_toggle(*socket)) { | if (socket_type_has_attribute_toggle(*socket)) { | ||||
| has_output_attribute = true; | |||||
| draw_property_for_output_socket(layout, ptr, *socket); | draw_property_for_output_socket(layout, ptr, *socket); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!has_output_attribute) { | |||||
| uiItemL(layout, IFACE_("Connect a link to the group output"), ICON_INFO); | |||||
| } | |||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| Context not available. | |||||