|
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::nodes::FieldOperation::Create(), and blender::CPPType::is().
Referenced by node_geo_exec().
|
static |
Definition at line 68 of file node_geo_tool_set_selection.cc.
References blender::fn::GFieldBase< NodePtr >::cpp_type(), blender::nodes::FieldOperation::Create(), invert(), and blender::CPPType::is().
Referenced by node_geo_exec().
|
static |
Definition at line 27 of file node_geo_tool_set_selection.cc.
References b, Boolean, and Float.
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(), clamp_selection(), ELEM, blender::nodes::Error, blender::CPPType::get(), blender::bke::get_implicit_type_conversions(), invert_selection(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, params, remove_with_wrong_domain(), blender::bke::try_capture_field_on_geometry(), and blender::bke::DataTypeConversions::try_convert().
Referenced by node_register().
|
static |
Definition at line 52 of file node_geo_tool_set_selection.cc.
References Boolean, bNode::custom1, and bNode::custom2.
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(), 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.
|
static |
Definition at line 197 of file node_geo_tool_set_selection.cc.
References Boolean, Float, NOD_inline_enum_accessors, blender::nodes::RNA_def_node_enum(), and rna_enum_attribute_domain_point_edge_face_curve_items.
Referenced by node_register().
|
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(), and blender::bke::MutableAttributeAccessor::remove().
Referenced by node_geo_exec().