Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_separate_geometry.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_separate_geometry_declare(NodeDeclarationBuilder &b) | static void geo_node_separate_geometry_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Geometry>("Geometry"); | b.add_input<decl::Geometry>(N_("Geometry")); | ||||
| b.add_input<decl::Bool>("Selection") | b.add_input<decl::Bool>(N_("Selection")) | ||||
| .default_value(true) | .default_value(true) | ||||
| .hide_value() | .hide_value() | ||||
| .supports_field() | .supports_field() | ||||
| .description("The parts of the geometry that go into the first output"); | .description(N_("The parts of the geometry that go into the first output")); | ||||
| b.add_output<decl::Geometry>("Selection") | b.add_output<decl::Geometry>(N_("Selection")) | ||||
| .description("The parts of the geometry in the selection"); | .description(N_("The parts of the geometry in the selection")); | ||||
| b.add_output<decl::Geometry>("Inverted") | b.add_output<decl::Geometry>(N_("Inverted")) | ||||
| .description("The parts of the geometry not in the selection"); | .description(N_("The parts of the geometry not in the selection")); | ||||
| } | } | ||||
| static void geo_node_separate_geometry_layout(uiLayout *layout, | static void geo_node_separate_geometry_layout(uiLayout *layout, | ||||
| bContext *UNUSED(C), | bContext *UNUSED(C), | ||||
| PointerRNA *ptr) | PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "domain", 0, "", ICON_NONE); | uiItemR(layout, ptr, "domain", 0, "", ICON_NONE); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||