Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_material.cc
| Show All 17 Lines | |||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_input_material_declare(NodeDeclarationBuilder &b) | static void geo_node_input_material_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Material>("Material"); | b.add_output<decl::Material>(N_("Material")); | ||||
| } | } | ||||
| static void geo_node_input_material_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void geo_node_input_material_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "material", 0, "", ICON_NONE); | uiItemR(layout, ptr, "material", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void geo_node_input_material_exec(GeoNodeExecParams params) | static void geo_node_input_material_exec(GeoNodeExecParams params) | ||||
| Show All 17 Lines | |||||