Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc
| Show All 23 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_mesh_primitive_line_declare(NodeDeclarationBuilder &b) | static void geo_node_mesh_primitive_line_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Int>("Count").default_value(10).min(1).max(10000); | b.add_input<decl::Int>(N_("Count")).default_value(10).min(1).max(10000); | ||||
| b.add_input<decl::Float>("Resolution").default_value(1.0f).min(0.1f).subtype(PROP_DISTANCE); | b.add_input<decl::Float>(N_("Resolution")).default_value(1.0f).min(0.1f).subtype(PROP_DISTANCE); | ||||
| b.add_input<decl::Vector>("Start Location").subtype(PROP_TRANSLATION); | b.add_input<decl::Vector>(N_("Start Location")).subtype(PROP_TRANSLATION); | ||||
| b.add_input<decl::Vector>("Offset").default_value({0.0f, 0.0f, 1.0f}).subtype(PROP_TRANSLATION); | b.add_input<decl::Vector>(N_("Offset")) | ||||
| b.add_output<decl::Geometry>("Mesh"); | .default_value({0.0f, 0.0f, 1.0f}) | ||||
| .subtype(PROP_TRANSLATION); | |||||
| b.add_output<decl::Geometry>(N_("Mesh")); | |||||
| } | } | ||||
| static void geo_node_mesh_primitive_line_layout(uiLayout *layout, | static void geo_node_mesh_primitive_line_layout(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| PointerRNA *ptr) | PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayoutSetPropDecorate(layout, false); | uiLayoutSetPropDecorate(layout, false); | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||