21 "Index of the active element in the specified domain");
23 "True if an active element exists in the mesh, false otherwise");
28 node->
custom1 = int16_t(AttrDomain::Point);
49 ELEM(domain, AttrDomain::Point, AttrDomain::Edge, AttrDomain::Face))
51 params.set_default_remaining_outputs();
56 case AttrDomain::Point:
60 case AttrDomain::Edge:
64 case AttrDomain::Face:
68 case AttrDomain::Layer:
73 params.set_default_remaining_outputs();
82 {int(AttrDomain::Point),
"POINT", 0,
"Point",
""},
83 {int(AttrDomain::Edge),
"EDGE", 0,
"Edge",
""},
84 {int(AttrDomain::Face),
"FACE", 0,
"Face",
""},
85 {int(AttrDomain::Layer),
"LAYER", 0,
"Layer",
""},
86 {0,
nullptr, 0,
nullptr,
nullptr},
95 int(AttrDomain::Point));
102 ntype.
ui_name =
"Active Element";
103 ntype.
ui_description =
"Active element indices of the edited geometry, for tool execution";
#define GEO_NODE_TOOL_ACTIVE_ELEMENT
#define BLI_assert_unreachable()
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
void node_register_type(bNodeType &ntype)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams ¶ms)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
bool check_tool_context_and_error(GeoNodeExecParams ¶ms)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
void use_property_decorate_set(bool is_sep)
void use_property_split_set(bool value)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)