Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Show First 20 Lines • Show All 1,403 Lines • ▼ Show 20 Lines | log.foreach_node_log([&](const geo_log::NodeLog &node_log) { | ||||
| uiItemL(layout, warning.message.c_str(), ICON_ERROR); | uiItemL(layout, warning.message.c_str(), ICON_ERROR); | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||
| } | } | ||||
| if (has_legacy_node) { | if (has_legacy_node) { | ||||
| uiLayout *row = uiLayoutRow(layout, false); | uiLayout *row = uiLayoutRow(layout, false); | ||||
| uiItemL(row, IFACE_("Node tree has legacy node"), ICON_ERROR); | uiItemL(row, TIP_("Node tree has legacy node"), ICON_ERROR); | ||||
| uiLayout *sub = uiLayoutRow(row, false); | uiLayout *sub = uiLayoutRow(row, false); | ||||
| uiLayoutSetAlignment(sub, UI_LAYOUT_ALIGN_RIGHT); | uiLayoutSetAlignment(sub, UI_LAYOUT_ALIGN_RIGHT); | ||||
| uiItemO(sub, "", ICON_VIEWZOOM, "NODE_OT_geometry_node_view_legacy"); | uiItemO(sub, "", ICON_VIEWZOOM, "NODE_OT_geometry_node_view_legacy"); | ||||
| } | } | ||||
| modifier_panel_end(layout, ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| Show All 12 Lines | 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; | has_output_attribute = true; | ||||
| draw_property_for_output_socket(layout, *nmd, ptr, *socket); | draw_property_for_output_socket(layout, *nmd, ptr, *socket); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!has_output_attribute) { | if (!has_output_attribute) { | ||||
| uiItemL(layout, IFACE_("No group output attributes connected."), ICON_INFO); | uiItemL(layout, TIP_("No group output attributes connected"), ICON_INFO); | ||||
| } | } | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Nodes, panel_draw); | PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Nodes, panel_draw); | ||||
| modifier_subpanel_register(region_type, | modifier_subpanel_register(region_type, | ||||
| "output_attributes", | "output_attributes", | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||