|
Blender V4.5
|
Classes | |
| class | MeshState |
| struct | GeoOperatorLog |
Enumerations | |
| enum class | ConvertAttributeMode { Generic = 0 , VertexGroup = 1 } |
Variables | |
| static EnumPropertyItem | convert_attribute_mode_items [] |
|
strong |
| Enumerator | |
|---|---|
| Generic | |
| VertexGroup | |
Definition at line 454 of file geometry_attributes.cc.
|
static |
Definition at line 1037 of file node_group_operator.cc.
References asset_flag_for_context(), Object::mode, and Object::type.
|
static |
Definition at line 975 of file node_group_operator.cc.
References BLI_assert_unreachable, GEO_NODE_ASSET_CURVE, GEO_NODE_ASSET_EDIT, GEO_NODE_ASSET_GREASE_PENCIL, GEO_NODE_ASSET_MESH, GEO_NODE_ASSET_OBJECT, GEO_NODE_ASSET_PAINT, GEO_NODE_ASSET_POINTCLOUD, GEO_NODE_ASSET_SCULPT, GEO_NODE_ASSET_TOOL, OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GREASE_PENCIL, and OB_POINTCLOUD.
Referenced by asset_flag_for_context(), build_catalog_tree(), catalog_assets_draw_unassigned(), and unassigned_local_poll().
Definition at line 970 of file node_group_operator.cc.
References C, and CTX_wm_view3d().
Referenced by node_group_operator_assets_menu(), and node_group_operator_assets_menu_unassigned().
Definition at line 206 of file geometry_attributes.cc.
References ATTR_DOMAIN_MASK_ALL, BKE_attribute_search(), BKE_attributes_active_name_get(), C, CD_MASK_PROP_ALL, CD_PROP_FLOAT4X4, CD_PROP_QUATERNION, CD_PROP_STRING, CTX_wm_operator_poll_msg_set(), ELEM, AttributeOwner::from_id(), and CustomDataLayer::type.
Referenced by blender::ed::curves::active_attribute_poll(), blender::ed::pointcloud::active_attribute_poll(), and blender::ed::mesh::mesh_active_attribute_poll().
|
static |
Definition at line 1144 of file node_group_operator.cc.
References blender::asset_system::all_library_reference(), blender::asset_system::all_library_reload_catalogs_if_dirty(), asset_flag_for_context(), BKE_asset_metadata_idprop_find(), blender::ed::asset::build_filtered_all_catalog_tree(), C, FILTER_ID_NT, flag, blender::ed::asset::AssetFilterSettings::id_types, IDP_Int, and NTREE_GEOMETRY.
Referenced by ui_template_node_operator_asset_root_items().
|
static |
Definition at line 510 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::begin(), DEG_evaluate_on_refresh(), DEG_get_bmain(), DEG_get_input_scene(), DEG_get_input_view_layer(), DEG_get_mode(), DEG_graph_build_from_ids(), DEG_graph_new(), depsgraph, and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::end().
Referenced by run_node_group_exec().
Definition at line 1269 of file node_group_operator.cc.
References blender::asset_system::all_library_reference(), BLI_assert, C, blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), CTX_data_active_object(), CTX_data_string_get(), blender::ed::asset::draw_menu_for_catalog(), blender::asset_system::AssetCatalogTreeItem::foreach_child(), get_builtin_menus(), get_static_item_tree(), IFACE_, Menu::layout, blender::ed::asset::list::library_get_once_available(), Object::mode, uiLayout::op(), blender::ed::asset::operator_asset_reference_props_set(), ot, uiLayout::separator(), blender::asset_system::AssetCatalogPath::str(), tree, Object::type, UI_ITEM_NONE, WM_OP_INVOKE_REGION_WIN, and WM_operatortype_find().
Referenced by node_group_operator_assets_menu().
|
static |
Definition at line 1358 of file node_group_operator.cc.
References asset_flag_for_context(), C, CTX_data_active_object(), CTX_data_main(), flag, get_static_item_tree(), IFACE_, uiLayout::label(), Menu::layout, LISTBASE_FOREACH, Main::nodetrees, uiLayout::op(), blender::ed::asset::operator_asset_reference_props_set(), ot, RNA_string_set(), uiLayout::separator(), tree, UI_ITEM_NONE, WM_OP_INVOKE_REGION_WIN, WM_operator_properties_id_lookup_set_from_id(), and WM_operatortype_find().
Referenced by node_group_operator_assets_menu_unassigned().
| void blender::ed::geometry::clear_operator_asset_trees | ( | ) |
Definition at line 1127 of file node_group_operator.cc.
References get_static_item_tree(), OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GREASE_PENCIL, OB_POINTCLOUD, and tree.
Referenced by view3d_header_region_listener().
| bool blender::ed::geometry::convert_attribute | ( | AttributeOwner & | owner, |
| bke::MutableAttributeAccessor | attributes, | ||
| StringRef | name, | ||
| bke::AttrDomain | dst_domain, | ||
| eCustomDataType | dst_type, | ||
| ReportList * | reports ) |
Convert an attribute with the given name to a new type and domain. The attribute must already exist.
Definition at line 480 of file geometry_attributes.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::CPPType::alignment, BKE_attributes_active_name_get(), BKE_attributes_active_set(), BKE_report(), BLI_assert, CD_PROP_STRING, blender::bke::AttributeAccessor::contains(), ELEM, blender::bke::AttributeAccessor::lookup_or_default(), blender::GVArrayCommon::materialize_to_uninitialized(), MEM_freeN(), MEM_mallocN_aligned(), blender::bke::MutableAttributeAccessor::remove(), reports, RPT_ERROR, blender::CPPType::size, blender::GVArrayCommon::size(), and blender::GVArrayCommon::type().
Referenced by geometry_attribute_convert_exec(), geometry_color_attribute_convert_exec(), and blender::ed::sculpt_paint::undo::set_active_layer().
|
static |
Definition at line 435 of file node_group_operator.cc.
References input.
Referenced by gather_input_ids().
|
static |
Find all the visible node editors to log values for.
Definition at line 148 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), bScreen::areabase, BKE_workspace_active_screen_get(), SpaceNode::edittree, ListBase::first, SpaceNode::geometry_nodes_type, blender::nodes::geo_eval_log::GeoNodesLog::get_context_hash_by_zone_for_node_editor(), hash, LISTBASE_FOREACH, SNODE_GEOMETRY_TOOL, SPACE_NODE, SpaceLink::spacetype, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), and Main::wm.
Referenced by run_node_group_exec().
|
static |
Gather IDs referenced from node group input properties (the redo panel). In the end, the group input properties will be copied to contain evaluated data-blocks from the active and/or an extra depsgraph.
Definition at line 483 of file node_group_operator.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_libblock_find_name(), find_group_input_by_identifier(), id_name(), IDP_foreach_property(), IDP_String, IDP_TYPE_FILTER_STRING, input, IDProperty::name, and socket_type_to_id_type().
Referenced by run_node_group_exec().
|
static |
Gather IDs used by the node group, and the node group itself if there are any. We need to use all IDs because the only mechanism we have to replace the socket ID pointers with their evaluated counterparts is evaluating the node group data-block itself.
Definition at line 421 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_assert, bNodeTree::id, bNodeTree::runtime, and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by run_node_group_exec().
|
static |
Definition at line 559 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, OB_MODE_OBJECT, object_has_editable_data(), and Object::type.
Referenced by run_node_group_exec().
|
static |
Definition at line 274 of file geometry_attributes.cc.
References BKE_attribute_new(), BKE_attributes_active_set(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, MAX_NAME, CustomDataLayer::name, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_string_get(), and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_add().
|
static |
Definition at line 298 of file geometry_attributes.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_IFACE_, DATA_, free(), IFACE_, MEM_freeN(), wmOperator::ptr, RNA_property_enum_items(), RNA_property_enum_set(), RNA_property_is_set(), RNA_property_string_set(), RNA_struct_find_property(), EnumPropertyItem::value, and WM_operator_props_popup_confirm_ex().
Referenced by GEOMETRY_OT_attribute_add().
|
static |
Definition at line 518 of file geometry_attributes.cc.
References BKE_attributes_active_index_p(), BKE_attributes_active_name_get(), BKE_attributes_active_set(), BKE_defvert_add_index_notest(), BKE_id_defgroup_list_get(), BKE_object_defgroup_data_create(), BKE_object_defgroup_new(), BLI_findindex(), C, blender::ed::object::context_object(), convert_attribute(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), Generic, Curves::geometry, i, Curves::id, ID_RECALC_GEOMETRY, blender::bke::AttributeAccessor::lookup_or_default(), blender::VArrayCommon< T >::materialize(), NC_GEOM, ND_DATA, OB_CURVES, OB_MESH, OB_POINTCLOUD, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::Point, wmOperator::ptr, blender::bke::MutableAttributeAccessor::remove(), wmOperator::reports, RNA_enum_get(), Object::type, VertexGroup, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 815 of file geometry_attributes.cc.
References BKE_attributes_active_name_get(), C, blender::ed::object::context_object(), Object::data, blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, AttributeOwner::from_id(), blender::bke::AttributeAccessor::from_id(), IFACE_, blender::bke::AttributeAccessor::lookup_meta_data(), wmOperator::ptr, RNA_property_enum_set(), RNA_property_is_set(), RNA_struct_find_property(), and WM_operator_props_dialog_popup().
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 868 of file geometry_attributes.cc.
References C, blender::ed::object::context_object(), convert_attribute_mode_items, Generic, OB_MESH, rna_enum_dummy_NULL_items, RNA_enum_item_add(), RNA_enum_item_end(), and Object::type.
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 459 of file geometry_attributes.cc.
References BKE_attributes_active_name_get(), C, blender::ed::object::context_object(), CTX_data_edit_object(), CTX_wm_operator_poll_msg_set(), data, Object::data, AttributeOwner::from_id(), geometry_attributes_poll(), OB_MESH, and Object::type.
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 839 of file geometry_attributes.cc.
References C, blender::ed::object::context_object(), Generic, wmOperator::layout, OB_MESH, OB_POINTCLOUD, uiLayout::prop(), wmOperator::ptr, RNA_enum_get(), Object::type, UI_ITEM_NONE, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 256 of file geometry_attributes.cc.
References C, blender::ed::object::context_object(), Object::data, AttributeOwner::from_id(), rna_enum_attribute_domain_itemf(), and rna_enum_dummy_NULL_items.
Referenced by GEOMETRY_OT_attribute_add(), and GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 368 of file geometry_attributes.cc.
References BKE_attribute_remove(), BKE_attributes_active_index_p(), BKE_attributes_active_name_get(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_remove().
|
static |
Definition at line 225 of file geometry_attributes.cc.
References BKE_id_is_editable(), C, blender::ed::object::context_object(), CTX_data_main(), data, Object::data, blender::bke::AttributeAccessor::from_id(), and Object::id.
Referenced by geometry_attribute_convert_poll(), geometry_attributes_remove_poll(), geometry_color_attribute_convert_poll(), geometry_color_attributes_duplicate_poll(), geometry_color_attributes_remove_poll(), GEOMETRY_OT_attribute_add(), GEOMETRY_OT_color_attribute_add(), and GEOMETRY_OT_color_attribute_render_set().
|
static |
Definition at line 240 of file geometry_attributes.cc.
References BKE_attributes_active_name_get(), C, blender::ed::object::context_object(), data, Object::data, AttributeOwner::from_id(), and geometry_attributes_poll().
Referenced by GEOMETRY_OT_attribute_remove().
|
static |
Definition at line 405 of file geometry_attributes.cc.
References BKE_attribute_new(), BKE_id_attributes_active_color_set(), BKE_id_attributes_color_find(), BKE_id_attributes_default_color_name(), BKE_id_attributes_default_color_set(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, MAX_NAME, CustomDataLayer::name, NC_GEOM, ND_DATA, blender::ed::sculpt_paint::object_active_color_fill(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_float_get_array(), RNA_string_get(), and WM_main_add_notifier().
Referenced by GEOMETRY_OT_color_attribute_add().
|
static |
Definition at line 438 of file geometry_attributes.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_IFACE_, DATA_, IFACE_, wmOperator::ptr, RNA_property_is_set(), RNA_property_string_set(), RNA_struct_find_property(), and WM_operator_props_popup_confirm_ex().
Referenced by GEOMETRY_OT_color_attribute_add().
|
static |
Definition at line 606 of file geometry_attributes.cc.
References wmOperator::layout, uiLayout::prop(), wmOperator::ptr, UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_color_attribute_add().
|
static |
Definition at line 931 of file geometry_attributes.cc.
References C, blender::ed::object::context_object(), convert_attribute(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), and WM_main_add_notifier().
Referenced by GEOMETRY_OT_color_attribute_convert().
|
static |
Definition at line 947 of file geometry_attributes.cc.
References C, blender::ed::object::context_object(), Object::data, blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, IFACE_, wmOperator::ptr, RNA_property_enum_set(), RNA_property_is_set(), RNA_struct_find_property(), and WM_operator_props_dialog_popup().
Referenced by GEOMETRY_OT_color_attribute_convert().
|
static |
Definition at line 899 of file geometry_attributes.cc.
References ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, C, CD_MASK_COLOR_ALL, CD_TYPE_AS_MASK, blender::ed::object::context_object(), CTX_data_edit_object(), CTX_wm_operator_poll_msg_set(), Object::data, geometry_attributes_poll(), GS, ID_ME, and blender::bke::AttributeAccessor::lookup_meta_data().
Referenced by GEOMETRY_OT_color_attribute_convert().
|
static |
Definition at line 969 of file geometry_attributes.cc.
References wmOperator::layout, uiLayout::prop(), wmOperator::ptr, UI_ITEM_R_EXPAND, uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_color_attribute_convert().
|
static |
Definition at line 757 of file geometry_attributes.cc.
References BKE_attribute_duplicate(), BKE_id_attributes_active_color_name(), BKE_id_attributes_active_color_set(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, CustomDataLayer::name, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_color_attribute_duplicate().
|
static |
Definition at line 707 of file geometry_attributes.cc.
References BKE_attribute_remove(), BKE_id_attributes_active_color_name(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_color_attribute_remove().
|
static |
Definition at line 666 of file geometry_attributes.cc.
References BKE_id_attributes_color_find(), BKE_id_attributes_default_color_set(), C, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), ID_RECALC_GEOMETRY, MAX_NAME, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_main_add_notifier().
Referenced by GEOMETRY_OT_color_attribute_render_set().
|
static |
Definition at line 780 of file geometry_attributes.cc.
References BKE_id_attributes_active_color_name(), BKE_id_attributes_color_find(), C, blender::ed::object::context_object(), CTX_data_edit_object(), CTX_wm_operator_poll_msg_set(), data, Object::data, and geometry_attributes_poll().
Referenced by GEOMETRY_OT_color_attribute_duplicate().
|
static |
Definition at line 726 of file geometry_attributes.cc.
References BKE_id_attributes_active_color_name(), BKE_id_attributes_color_find(), C, blender::ed::object::context_object(), data, Object::data, and geometry_attributes_poll().
Referenced by GEOMETRY_OT_color_attribute_remove().
| void blender::ed::geometry::GEOMETRY_OT_attribute_add | ( | wmOperatorType * | ot | ) |
Definition at line 326 of file geometry_attributes.cc.
References CD_PROP_FLOAT, geometry_attribute_add_exec(), geometry_attribute_add_invoke(), geometry_attribute_domain_itemf(), geometry_attributes_poll(), MAX_NAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_def_string(), rna_enum_attribute_domain_items, and rna_enum_attribute_type_items.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_attribute_convert | ( | wmOperatorType * | ot | ) |
Definition at line 1011 of file geometry_attributes.cc.
References CD_PROP_FLOAT, convert_attribute_mode_items, Generic, geometry_attribute_convert_exec(), geometry_attribute_convert_invoke(), geometry_attribute_convert_mode_itemf(), geometry_attribute_convert_poll(), geometry_attribute_convert_ui(), geometry_attribute_domain_itemf(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, RNA_def_enum(), RNA_def_enum_funcs(), rna_enum_attribute_domain_items, and rna_enum_attribute_type_items.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_attribute_remove | ( | wmOperatorType * | ot | ) |
Definition at line 390 of file geometry_attributes.cc.
References geometry_attribute_remove_exec(), geometry_attributes_remove_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_add | ( | wmOperatorType * | ot | ) |
Definition at line 618 of file geometry_attributes.cc.
References CD_PROP_COLOR, FLT_MAX, geometry_attributes_poll(), geometry_color_attribute_add_exec(), geometry_color_attribute_add_invoke(), geometry_color_attribute_add_ui(), MAX_NAME, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, PROP_COLOR, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_float_color(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_subtype(), RNA_def_string(), rna_enum_color_attribute_domain_items, and rna_enum_color_attribute_type_items.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_convert | ( | wmOperatorType * | ot | ) |
Definition at line 979 of file geometry_attributes.cc.
References CD_PROP_COLOR, geometry_color_attribute_convert_exec(), geometry_color_attribute_convert_invoke(), geometry_color_attribute_convert_poll(), geometry_color_attribute_convert_ui(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), rna_enum_color_attribute_domain_items, and rna_enum_color_attribute_type_items.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 800 of file geometry_attributes.cc.
References geometry_color_attribute_duplicate_exec(), geometry_color_attributes_duplicate_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_remove | ( | wmOperatorType * | ot | ) |
Definition at line 742 of file geometry_attributes.cc.
References geometry_color_attribute_remove_exec(), geometry_color_attributes_remove_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_render_set | ( | wmOperatorType * | ot | ) |
Definition at line 686 of file geometry_attributes.cc.
References geometry_attributes_poll(), geometry_color_attribute_set_render_exec(), MAX_NAME, OPTYPE_INTERNAL, OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, RNA_def_property_flag(), and RNA_def_string().
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_execute_node_group | ( | wmOperatorType * | ot | ) |
Definition at line 879 of file node_group_operator.cc.
References FLT_MAX, blender::ed::asset::operator_asset_reference_props_register(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_HIDDEN, RNA_def_boolean(), RNA_def_float_array(), RNA_def_int_array(), RNA_def_property_flag(), run_node_group_depends_on_cursor(), run_node_group_exec(), run_node_group_get_description(), run_node_group_get_name(), run_node_group_invoke(), run_node_group_ui(), run_node_ui_poll(), and WM_operator_properties_id_lookup().
Referenced by operatortypes_geometry().
| void blender::ed::geometry::GEOMETRY_OT_geometry_randomization | ( | wmOperatorType * | ot | ) |
Definition at line 43 of file geometry_randomization.cc.
References geometry_randomization_exec(), geometry_randomization_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by operatortypes_geometry().
|
static |
Definition at line 30 of file geometry_randomization.cc.
References C, CTX_data_main(), DEG_id_tag_update(), G, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, NC_WINDOW, Main::objects, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by GEOMETRY_OT_geometry_randomization().
|
static |
Definition at line 22 of file geometry_randomization.cc.
References C, G, wmOperator::ptr, RNA_boolean_set(), and WM_operator_props_popup().
Referenced by GEOMETRY_OT_geometry_randomization().
|
static |
Definition at line 95 of file node_group_operator.cc.
References blender::ed::asset::asset_local_id_ensure_imported(), C, CTX_data_main(), ID_NT, blender::ed::asset::operator_asset_reference_props_get_asset_from_all_library(), ptr, reports, and WM_operator_properties_id_lookup_from_name_or_session_uid().
Referenced by get_node_group().
|
static |
Avoid adding a separate root catalog when the assets have already been added to one of the builtin menus. The need to define the builtin menu labels here is non-ideal. We don't have any UI introspection that can do this though.
Definition at line 1171 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, OB_MODE_SCULPT_GREASE_PENCIL, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, and OB_POINTCLOUD.
Referenced by catalog_assets_draw(), and ui_template_node_operator_asset_root_items().
|
static |
Definition at line 114 of file node_group_operator.cc.
References BKE_report(), C, get_asset_or_local_node_group(), NTREE_GEOMETRY, ptr, reports, RPT_ERROR, and bNodeTree::type.
Referenced by run_node_group_exec(), run_node_group_invoke(), and run_node_group_ui().
|
static |
Geometry nodes currently requires working on "evaluated" data-blocks (rather than "original" data-blocks that are part of a Main data-base). This could change in the future, but for now, we need to create evaluated copies of geometry before passing it to geometry nodes. Implicit sharing lets us avoid copying attribute data though.
Definition at line 230 of file node_group_operator.cc.
References blender::nodes::GeoNodesOperatorData::active_edge_index, blender::nodes::GeoNodesOperatorData::active_face_index, blender::nodes::GeoNodesOperatorData::active_layer_index, blender::nodes::GeoNodesOperatorData::active_point_index, blender::Vector< T, InlineBufferCapacity, Allocator >::append_as(), BKE_curves_copy_for_eval(), BKE_grease_pencil_copy_for_eval(), BKE_id_free(), BKE_mesh_copy_for_eval(), BKE_mesh_wrapper_ensure_mdata(), BKE_mesh_wrapper_from_editmesh(), BKE_pointcloud_copy_for_eval(), BM_mesh_active_edge_index_get(), BM_mesh_active_face_index_get(), BM_mesh_active_vert_index_get(), data, DEG_get_ctime(), depsgraph, blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::from_grease_pencil(), blender::bke::GeometrySet::from_mesh(), blender::bke::GeometrySet::from_pointcloud(), OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_POINTCLOUD, blender::bke::object::pbvh_get(), GreasePencil::runtime, and blender::bke::pbvh::update_normals().
Referenced by run_node_group_exec().
|
static |
The socket value log is stored statically so it can be used in the node editor. A fancier storage system shouldn't be necessary, since the goal is just to be able to debug intermediate values when building a tool.
Definition at line 136 of file node_group_operator.cc.
References log.
Referenced by node_group_operator_static_eval_log(), run_node_group_exec(), and run_node_group_ui().
|
static |
Definition at line 1122 of file node_group_operator.cc.
References get_static_item_tree(), Object::mode, and Object::type.
|
static |
Definition at line 1042 of file node_group_operator.cc.
References OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GREASE_PENCIL, OB_POINTCLOUD, and tree.
Referenced by catalog_assets_draw(), catalog_assets_draw_unassigned(), clear_operator_asset_trees(), get_static_item_tree(), ui_template_node_operator_asset_menu_items(), and ui_template_node_operator_asset_root_items().
|
static |
Definition at line 179 of file node_group_operator.cc.
References CD_MDEFORMVERT, and CustomData_get_layer_index().
Referenced by blender::ed::geometry::MeshState::MeshState().
| MenuType blender::ed::geometry::node_group_operator_assets_menu | ( | ) |
Definition at line 1324 of file node_group_operator.cc.
References asset_menu_poll(), blender::ed::asset::list::asset_reading_region_listen_fn(), catalog_assets_draw(), ContextDependent, MenuType::draw, MenuType::flag, MenuType::idname, MenuType::listener, MenuType::poll, and STRNCPY().
Referenced by ED_spacetype_view3d().
| MenuType blender::ed::geometry::node_group_operator_assets_menu_unassigned | ( | ) |
Definition at line 1409 of file node_group_operator.cc.
References asset_menu_poll(), blender::ed::asset::list::asset_reading_region_listen_fn(), catalog_assets_draw_unassigned(), ContextDependent, MenuType::description, MenuType::draw, MenuType::flag, MenuType::idname, MenuType::label, MenuType::listener, N_, MenuType::poll, and STRNCPY().
Referenced by ED_spacetype_view3d().
| const GeoOperatorLog & blender::ed::geometry::node_group_operator_static_eval_log | ( | ) |
Definition at line 142 of file node_group_operator.cc.
References get_static_eval_log().
Referenced by blender::nodes::geo_eval_log::get_root_log().
|
static |
Definition at line 548 of file node_group_operator.cc.
References BKE_id_is_editable(), data, ELEM, OB_CURVES, OB_GREASE_PENCIL, OB_MESH, and OB_POINTCLOUD.
Referenced by gather_supported_objects().
| void blender::ed::geometry::operatortypes_geometry | ( | ) |
Definition at line 19 of file geometry_ops.cc.
References GEOMETRY_OT_attribute_add(), GEOMETRY_OT_attribute_convert(), GEOMETRY_OT_attribute_remove(), GEOMETRY_OT_color_attribute_add(), GEOMETRY_OT_color_attribute_convert(), GEOMETRY_OT_color_attribute_duplicate(), GEOMETRY_OT_color_attribute_remove(), GEOMETRY_OT_color_attribute_render_set(), GEOMETRY_OT_execute_node_group(), GEOMETRY_OT_geometry_randomization(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| void blender::ed::geometry::register_rna_properties_for_attribute_types | ( | StructRNA & | srna | ) |
Definition at line 84 of file geometry_attributes.cc.
References FLT_MAX, RNA_def_boolean(), RNA_def_float(), RNA_def_float_array(), RNA_def_float_color(), RNA_def_int(), and RNA_def_int_array().
Referenced by blender::ed::curves::CURVES_OT_attribute_set(), MESH_OT_attribute_set(), and blender::ed::pointcloud::POINTCLOUD_OT_attribute_set().
|
static |
Definition at line 536 of file node_group_operator.cc.
References blender::nodes::GeoNodesOperatorDepsgraphs::get_evaluated_id(), GS, ID_TYPE_USE_COPY_ON_EVAL, IDP_foreach_property(), IDP_Id, and IDP_TYPE_FILTER_ID.
Referenced by run_node_group_exec().
|
static |
Definition at line 521 of file node_group_operator.cc.
References blender::bke::idprop::create(), blender::bke::idprop::create_group(), IDP_AddToGroup(), IDP_CopyProperty(), IDP_foreach_property(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), and IDProperty::name.
Referenced by run_node_group_exec().
| GPointer blender::ed::geometry::rna_property_for_attribute_type_retrieve_value | ( | PointerRNA & | ptr, |
| const eCustomDataType | type, | ||
| void * | buffer ) |
Definition at line 117 of file geometry_attributes.cc.
References BLI_assert_unreachable, blender::StringRefNull::c_str(), CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT16_2D, CD_PROP_INT32, CD_PROP_INT32_2D, CD_PROP_INT8, blender::bke::custom_data_type_to_cpp_type(), blender::ColorSceneLinear4f< Alpha >::encode(), ptr, RNA_boolean_get(), RNA_float_get(), RNA_float_get_array(), RNA_int_get(), RNA_int_get_array(), and rna_property_name_for_type().
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::curves::set_attribute_exec(), and blender::ed::pointcloud::set_attribute_exec().
| void blender::ed::geometry::rna_property_for_attribute_type_set_value | ( | PointerRNA & | ptr, |
| PropertyRNA & | prop, | ||
| const GPointer | value ) |
Definition at line 166 of file geometry_attributes.cc.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT16_2D, CD_PROP_INT32, CD_PROP_INT32_2D, CD_PROP_INT8, blender::bke::cpp_type_to_custom_data_type(), blender::GPointer::get(), ptr, RNA_property_boolean_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), RNA_property_int_set_array(), and blender::GPointer::type().
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), blender::ed::curves::set_attribute_invoke(), and blender::ed::pointcloud::set_attribute_invoke().
| PropertyRNA * blender::ed::geometry::rna_property_for_type | ( | PointerRNA & | ptr, |
| const eCustomDataType | type ) |
Definition at line 79 of file geometry_attributes.cc.
References ptr, rna_property_name_for_type(), and RNA_struct_find_property().
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), blender::ed::curves::set_attribute_invoke(), and blender::ed::pointcloud::set_attribute_invoke().
| StringRefNull blender::ed::geometry::rna_property_name_for_type | ( | const eCustomDataType | type | ) |
Definition at line 53 of file geometry_attributes.cc.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT16_2D, CD_PROP_INT32, CD_PROP_INT32_2D, and CD_PROP_INT8.
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), rna_property_for_attribute_type_retrieve_value(), rna_property_for_type(), blender::ed::curves::set_attribute_ui(), and blender::ed::pointcloud::set_attribute_ui().
|
static |
Definition at line 853 of file node_group_operator.cc.
References BKE_asset_metadata_idprop_find(), C, CTX_data_main(), GEO_NODE_ASSET_WAIT_FOR_CURSOR, ID_NT, IDP_Int, blender::ed::asset::operator_asset_reference_props_get_asset_from_all_library(), ptr, and WM_operator_properties_id_lookup_from_name_or_session_uid().
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 600 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::nodes::geo_eval_log::GeoTreeLog::all_warnings, blender::MatBase< T, NumCol, NumRow, Alignment >::base_ptr(), BKE_report(), BLI_SCOPED_DEFER, build_extra_depsgraph(), blender::nodes::build_properties_vector_set(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_region_view3d(), blender::nodes::GeoNodesOperatorData::cursor_position, blender::nodes::GeoNodesOperatorData::cursor_rotation, DEG_get_evaluated(), DEG_id_is_fully_evaluated(), blender::nodes::GeoNodesOperatorData::depsgraphs, blender::nodes::ensure_geometry_nodes_lazy_function_graph(), blender::nodes::geo_eval_log::GeoTreeLog::ensure_node_warnings(), blender::nodes::GeoNodesCallData::eval_log, blender::nodes::execute_geometry_nodes_on_geometry(), blender::nodes::GeoNodesOperatorDepsgraphs::extra, find_socket_log_contexts(), gather_input_ids(), gather_node_group_ids(), gather_supported_objects(), get_node_group(), get_original_geometry_eval_copy(), get_static_eval_log(), blender::ComputeContext::hash(), bNodeTree::id, IDP_FreeProperty_ex(), blender::nodes::Info, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::ed::geometry::GeoOperatorLog::log, blender::nodes::geo_eval_log::NodeWarning::message, blender::nodes::GeoNodesOperatorData::mode, Object::mode, blender::nodes::GeoNodesOperatorData::mouse_position, ID::name, NC_GEOM, ND_DATA, blender::ed::geometry::GeoOperatorLog::node_group_name, nullptr, OPERATOR_CANCELLED, blender::nodes::GeoNodesCallData::operator_data, OPERATOR_FINISHED, wmOperator::properties, wmOperator::ptr, blender::nodes::GeoNodesOperatorData::region_size, replace_inputs_evaluated_data_blocks(), replace_strings_with_id_pointers(), wmOperator::reports, RNA_boolean_get(), RNA_float_get_array(), RNA_int_get_array(), RPT_ERROR, RPT_INFO, RPT_WARNING, blender::nodes::GeoNodesOperatorData::scene_orig, blender::nodes::GeoNodesOperatorData::self_object_orig, blender::nodes::GeoNodesCallData::socket_log_contexts, store_result_geometry(), STREQ, blender::nodes::geo_eval_log::NodeWarning::type, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), blender::nodes::GeoNodesOperatorData::viewport_is_perspective, blender::nodes::GeoNodesOperatorData::viewport_viewmat, blender::nodes::GeoNodesOperatorData::viewport_winmat, blender::math::QuaternionBase< T >::w, and WM_event_add_notifier().
Referenced by GEOMETRY_OT_execute_node_group(), and run_node_group_invoke().
|
static |
Definition at line 789 of file node_group_operator.cc.
References C, blender::ed::asset::operator_asset_reference_props_get_asset_from_all_library(), and ptr.
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 838 of file node_group_operator.cc.
References BLI_SCOPED_DEFER, len, MEM_SAFE_FREE, ptr, RNA_string_get_alloc(), and SEP_STR.
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 773 of file node_group_operator.cc.
References C, get_node_group(), OPERATOR_CANCELLED, wmOperator::properties, wmOperator::ptr, wmOperator::reports, run_node_group_exec(), store_input_node_values_rna_props(), and blender::nodes::update_output_properties_from_node_tree().
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 804 of file node_group_operator.cc.
References C, CTX_data_main(), blender::nodes::draw_geometry_nodes_operator_redo_ui(), get_node_group(), get_static_eval_log(), blender::ComputeContext::hash(), wmOperator::layout, blender::ed::geometry::GeoOperatorLog::log, wmOperator::ptr, RNA_main_pointer_create(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 824 of file node_group_operator.cc.
References flag, PROP_HIDDEN, ptr, result, RNA_property_flag(), RNA_STRUCT_BEGIN, and RNA_STRUCT_END.
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 446 of file node_group_operator.cc.
References ID_GR, ID_IM, ID_MA, ID_OB, ID_TE, SOCK_BOOLEAN, SOCK_BUNDLE, SOCK_CLOSURE, SOCK_COLLECTION, SOCK_CUSTOM, SOCK_FLOAT, SOCK_GEOMETRY, SOCK_IMAGE, SOCK_INT, SOCK_MATERIAL, SOCK_MATRIX, SOCK_MENU, SOCK_OBJECT, SOCK_RGBA, SOCK_ROTATION, SOCK_SHADER, SOCK_STRING, SOCK_TEXTURE, and SOCK_VECTOR.
Referenced by gather_input_ids().
|
static |
Input node values are stored as operator properties in order to support redoing from the redo panel for a few reasons:
Definition at line 741 of file node_group_operator.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), Scene::cursor, blender::MatBase< float, 4, 4 >::identity(), RegionView3D::is_persp, View3DCursor::location, wmEvent::mval, wmOperator::ptr, RNA_boolean_set(), RNA_float_set_array(), RNA_int_set_array(), RegionView3D::viewmat, blender::math::QuaternionBase< T >::w, RegionView3D::winmat, and ARegion::winrct.
Referenced by run_node_group_invoke().
|
static |
Definition at line 281 of file node_group_operator.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), BKE_editmesh_looptris_and_normals_calc(), BKE_id_free(), BKE_mesh_new_nomain(), BKE_mesh_nomain_to_mesh(), BKE_object_material_from_eval_data(), BKE_pointcloud_nomain_to_pointcloud(), BKE_report(), C, CustomData_free(), DEG_get_ctime(), DEG_id_tag_update(), depsgraph, EDBM_mesh_make_from_mesh(), blender::ed::greasepencil::ensure_active_keyframe(), blender::bke::greasepencil::ensure_non_empty_layer_names(), blender::IndexMask::from_indices(), Curves::geometry, Curves::id, GreasePencil::id, Mesh::id, PointCloud::id, ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, OB_CURVES, OB_GREASE_PENCIL, OB_MESH, OB_MODE_EDIT, OB_MODE_SCULPT, OB_POINTCLOUD, PointCloud::pdata, wmOperator::reports, RPT_WARNING, ToolSettings::selectmode, blender::ed::sculpt_paint::store_mesh_from_eval(), Scene::toolsettings, PointCloud::totpoint, and WM_event_add_notifier().
Referenced by run_node_group_exec().
| void blender::ed::geometry::ui_template_node_operator_asset_menu_items | ( | uiLayout & | layout, |
| const bContext & | C, | ||
| const StringRef | catalog_path ) |
Definition at line 1424 of file node_group_operator.cc.
References blender::asset_system::all_library_reference(), C, blender::asset_system::AssetCatalogTreeItem::catalog_path(), col, uiLayout::column(), CTX_data_active_object(), get_static_item_tree(), blender::ed::asset::list::library_get_once_available(), blender::asset_system::AssetCatalogPath::str(), tree, uiItemMContents(), and uiLayoutSetContextString().
| void blender::ed::geometry::ui_template_node_operator_asset_root_items | ( | uiLayout & | layout, |
| const bContext & | C ) |
Definition at line 1450 of file node_group_operator.cc.
References build_catalog_tree(), C, blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), CTX_data_active_object(), blender::ed::asset::draw_menu_for_catalog(), get_builtin_menus(), get_static_item_tree(), uiLayout::menu(), Object::mode, blender::asset_system::AssetCatalogPath::str(), tree, Object::type, and unassigned_local_poll().
|
static |
Definition at line 1335 of file node_group_operator.cc.
References asset_flag_for_context(), C, CTX_data_active_object(), CTX_data_main(), flag, LISTBASE_FOREACH, and Main::nodetrees.
Referenced by ui_template_node_operator_asset_root_items().
|
static |
Definition at line 862 of file geometry_attributes.cc.
Referenced by geometry_attribute_convert_mode_itemf(), and GEOMETRY_OT_attribute_convert().