|
Blender V4.5
|
Enumerations | |
| enum class | SelectionType { Boolean = 0 , Float = 1 } |
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (uiLayout *layout, bContext *, PointerRNA *ptr) |
| static void | node_init (bNodeTree *, bNode *node) |
| static GField | clamp_selection (const GField &selection) |
| static GField | invert_selection (const GField &selection) |
| static void | remove_with_wrong_domain (bke::MutableAttributeAccessor attributes, const StringRef name, const bke::AttrDomain domain) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_rna (StructRNA *srna) |
| static void | node_register () |
| Enumerator | |
|---|---|
| Boolean | |
| Float | |
Definition at line 22 of file node_geo_tool_set_selection.cc.
|
static |
Definition at line 58 of file node_geo_tool_set_selection.cc.
References clamp(), blender::fn::GFieldBase< NodePtr >::cpp_type(), blender::fn::FieldOperation::Create(), blender::CPPType::is(), and value.
|
static |
Definition at line 68 of file node_geo_tool_set_selection.cc.
References blender::fn::GFieldBase< NodePtr >::cpp_type(), blender::fn::FieldOperation::Create(), invert(), blender::CPPType::is(), and value.
|
static |
Definition at line 27 of file node_geo_tool_set_selection.cc.
References b, Boolean, Float, and node.
Referenced by node_register().
|
static |
Definition at line 97 of file node_geo_tool_set_selection.cc.
References blender::nodes::check_tool_context_and_error(), ELEM, blender::nodes::Error, blender::bke::get_implicit_type_conversions(), blender::bke::GeometrySet::get_mesh_for_write(), blender::bke::GeometrySet::has_curves(), mesh, blender::bke::GeometrySet::modify_geometry_sets(), OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, and params.
Referenced by node_register().
|
static |
Definition at line 52 of file node_geo_tool_set_selection.cc.
Referenced by node_register().
|
static |
Definition at line 46 of file node_geo_tool_set_selection.cc.
References uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by node_register().
|
static |
Definition at line 229 of file node_geo_tool_set_selection.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::gather_link_search_ops, GEO_NODE_TOOL_SET_SELECTION, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, blender::nodes::search_link_ops_for_tool_node(), ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 197 of file node_geo_tool_set_selection.cc.
References NOD_inline_enum_accessors, node_rna(), blender::nodes::RNA_def_node_enum(), and rna_enum_attribute_domain_point_edge_face_curve_items.
Referenced by node_register(), and node_rna().
|
static |
After conversion to and from other geometry types, the selection attributes can end up on the wrong domain (usually the point domain). Since the node requires certain domains to work, just remove the attributes in this case.
Definition at line 86 of file node_geo_tool_set_selection.cc.
References blender::bke::AttributeAccessor::lookup_meta_data(), name, and blender::bke::MutableAttributeAccessor::remove().