|
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(), clamp_selection(), blender::fn::GFieldBase< NodePtr >::cpp_type(), blender::nodes::FieldOperation::Create(), and blender::CPPType::is().
Referenced by clamp_selection(), and 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(), blender::nodes::GField::GField(), invert(), invert_selection(), and blender::CPPType::is().
Referenced by invert_selection(), and node_geo_exec().
|
static |
Definition at line 27 of file node_geo_tool_set_selection.cc.
References b, Boolean, Float, and node_declare().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 97 of file node_geo_tool_set_selection.cc.
References blender::nodes::GeoNodesUserData::call_data, blender::nodes::check_tool_context_and_error(), clamp_selection(), bNode::custom1, ELEM, blender::nodes::Error, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::GeoNodeExecParams::extract_input(), blender::CPPType::get(), blender::bke::get_implicit_type_conversions(), blender::nodes::GField::GField(), invert_selection(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), blender::nodes::GeoNodesOperatorData::mode, blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, blender::nodes::GeoNodesCallData::operator_data, remove_with_wrong_domain(), blender::nodes::GeoNodeExecParams::set_output(), blender::bke::try_capture_field_on_geometry(), blender::bke::DataTypeConversions::try_convert(), and blender::nodes::GeoNodeExecParams::user_data().
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 52 of file node_geo_tool_set_selection.cc.
References Boolean, bNode::custom1, bNode::custom2, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 46 of file node_geo_tool_set_selection.cc.
References node_layout(), uiLayout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and 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 Boolean, Float, 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(), blender::bke::MutableAttributeAccessor::remove(), and remove_with_wrong_domain().
Referenced by node_geo_exec(), and remove_with_wrong_domain().