|
Blender V4.3
|
Classes | |
| struct | GeoOperatorLog |
Enumerations | |
| enum class | ConvertAttributeMode { Generic = 0 , VertexGroup = 1 } |
|
strong |
| Enumerator | |
|---|---|
| Generic | |
| VertexGroup | |
Definition at line 437 of file geometry_attributes.cc.
|
static |
Definition at line 663 of file node_group_operator.cc.
References BLI_str_escape(), bNodeTreeInterfaceSocket::identifier, blender::nodes::input_attribute_name_suffix(), blender::nodes::input_use_attribute_suffix(), MAX_NAME, bNodeTreeInterfaceSocket::name, blender::bke::node_socket_type_find(), RNA_boolean_get(), SOCK_BOOLEAN, bNodeTreeInterfaceSocket::socket_type, blender::bke::bNodeSocketType::type, UI_ITEM_NONE, UI_ITEM_R_ICON_ONLY, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiItemR(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiLayoutSplit().
Referenced by draw_property_for_socket().
|
static |
Definition at line 996 of file node_group_operator.cc.
References asset_flag_for_context(), Object::mode, and Object::type.
|
static |
Definition at line 948 of file node_group_operator.cc.
References BLI_assert_unreachable, GEO_NODE_ASSET_CURVE, GEO_NODE_ASSET_EDIT, GEO_NODE_ASSET_MESH, GEO_NODE_ASSET_OBJECT, GEO_NODE_ASSET_POINT_CLOUD, GEO_NODE_ASSET_SCULPT, GEO_NODE_ASSET_TOOL, OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, and OB_POINTCLOUD.
Referenced by asset_flag_for_context(), build_catalog_tree(), catalog_assets_draw_unassigned(), and unassigned_local_poll().
Definition at line 943 of file node_group_operator.cc.
References CTX_wm_view3d().
Referenced by node_group_operator_assets_menu(), and node_group_operator_assets_menu_unassigned().
Definition at line 195 of file geometry_attributes.cc.
References BKE_attributes_active_get(), CD_PROP_FLOAT4X4, CD_PROP_QUATERNION, CD_PROP_STRING, CTX_wm_operator_poll_msg_set(), ELEM, and AttributeOwner::from_id().
Referenced by blender::ed::curves::active_attribute_poll(), and blender::ed::mesh::mesh_active_attribute_poll().
|
static |
Definition at line 1077 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(), 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 378 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 1172 of file node_group_operator.cc.
References blender::asset_system::all_library_reference(), BLI_assert, 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, blender::ed::asset::operator_asset_reference_props_set(), ot, blender::asset_system::AssetCatalogPath::str(), tree, Object::type, UI_ITEM_NONE, uiItemFullO_ptr(), uiItemS(), WM_OP_INVOKE_REGION_WIN, and WM_operatortype_find().
Referenced by node_group_operator_assets_menu().
|
static |
Definition at line 1268 of file node_group_operator.cc.
References asset_flag_for_context(), CTX_data_active_object(), CTX_data_main(), flag, get_static_item_tree(), IFACE_, Menu::layout, LISTBASE_FOREACH, wmOperatorType::name, Main::nodetrees, blender::ed::asset::operator_asset_reference_props_set(), ot, RNA_string_set(), tree, UI_ITEM_NONE, uiItemFullO_ptr(), uiItemL(), uiItemS(), 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 1064 of file node_group_operator.cc.
References get_static_item_tree(), OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_POINTCLOUD, and tree.
Referenced by view3d_header_region_listener().
|
static |
Definition at line 712 of file node_group_operator.cc.
References add_attribute_search_or_value_buttons(), BLI_str_escape(), blender::nodes::id_property_type_matches_socket(), bNodeTreeInterfaceSocket::identifier, IDP_GetPropertyFromGroup(), blender::nodes::input_has_attribute_toggle(), MAX_NAME, bNodeTreeInterfaceSocket::name, blender::bke::node_socket_type_find(), node_tree, SNPRINTF, SOCK_COLLECTION, SOCK_IMAGE, SOCK_MATERIAL, SOCK_OBJECT, SOCK_TEXTURE, bNodeTreeInterfaceSocket::socket_type, blender::bke::bNodeSocketType::type, UI_ITEM_NONE, uiItemL(), uiItemPointerR(), uiItemR(), uiLayoutRow(), and uiLayoutSetPropDecorate().
Referenced by run_node_group_ui().
|
static |
Definition at line 305 of file node_group_operator.cc.
Referenced by gather_input_ids().
|
static |
Find all the visible node editors to log values for.
Definition at line 140 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_workspace_active_screen_get(), SpaceNode::edittree, ListBase::first, hash, LISTBASE_FOREACH, blender::ComputeContextBuilder::push(), SPACE_NODE, SpaceLink::spacetype, wmWindowManager::windows, 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 351 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, 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 290 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::nodes::find_node_tree_dependencies(), node_tree, and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by run_node_group_exec().
|
static |
Definition at line 425 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), 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 261 of file geometry_attributes.cc.
References BKE_attribute_new(), BKE_attributes_active_set(), blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, MAX_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 285 of file geometry_attributes.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, 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 464 of file geometry_attributes.cc.
References BKE_attributes_active_get(), BKE_attributes_active_index_p(), BKE_defvert_add_index_notest(), BKE_id_defgroup_list_get(), BKE_object_defgroup_data_create(), BKE_object_defgroup_new(), BLI_findindex(), blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), ED_geometry_attribute_convert(), AttributeOwner::from_id(), Generic, ID_RECALC_GEOMETRY, blender::VArrayCommon< T >::materialize(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::Point, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), VertexGroup, and WM_main_add_notifier().
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 733 of file geometry_attributes.cc.
References BKE_attributes_active_get(), blender::ed::object::context_object(), Object::data, blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, AttributeOwner::from_id(), 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_attribute_convert().
|
static |
Definition at line 442 of file geometry_attributes.cc.
References BKE_attributes_active_get(), blender::ed::object::context_object(), CTX_data_edit_object(), CTX_wm_operator_poll_msg_set(), Object::data, AttributeOwner::from_id(), geometry_attributes_poll(), GS, and ID_ME.
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 757 of file geometry_attributes.cc.
References Generic, wmOperator::layout, wmOperator::ptr, RNA_enum_get(), UI_ITEM_NONE, uiItemR(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_attribute_convert().
|
static |
Definition at line 243 of file geometry_attributes.cc.
References 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 353 of file geometry_attributes.cc.
References BKE_attribute_remove(), BKE_attributes_active_get(), BKE_attributes_active_index_p(), 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 212 of file geometry_attributes.cc.
References BKE_id_is_editable(), blender::ed::object::context_object(), CTX_data_main(), Object::data, 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 227 of file geometry_attributes.cc.
References BKE_attributes_active_get(), blender::ed::object::context_object(), Object::data, AttributeOwner::from_id(), and geometry_attributes_poll().
Referenced by GEOMETRY_OT_attribute_remove().
|
static |
Definition at line 390 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(), blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), AttributeOwner::from_id(), ID_RECALC_GEOMETRY, MAX_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 423 of file geometry_attributes.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, 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 524 of file geometry_attributes.cc.
References wmOperator::layout, wmOperator::ptr, UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiItemR(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_color_attribute_add().
|
static |
Definition at line 806 of file geometry_attributes.cc.
References Mesh::active_color_attribute, blender::ed::object::context_object(), Object::data, DEG_id_tag_update(), ED_geometry_attribute_convert(), 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 821 of file geometry_attributes.cc.
References Mesh::active_color_attribute, 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 774 of file geometry_attributes.cc.
References Mesh::active_color_attribute, ATTR_DOMAIN_AS_MASK, ATTR_DOMAIN_MASK_COLOR, 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 843 of file geometry_attributes.cc.
References wmOperator::layout, wmOperator::ptr, UI_ITEM_R_EXPAND, uiItemR(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_color_attribute_convert().
|
static |
Definition at line 675 of file geometry_attributes.cc.
References BKE_attribute_duplicate(), BKE_id_attributes_active_color_name(), BKE_id_attributes_active_color_set(), 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 625 of file geometry_attributes.cc.
References BKE_attribute_remove(), BKE_id_attributes_active_color_name(), 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 584 of file geometry_attributes.cc.
References BKE_id_attributes_color_find(), BKE_id_attributes_default_color_set(), 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 698 of file geometry_attributes.cc.
References BKE_id_attributes_active_color_name(), BKE_id_attributes_color_find(), blender::ed::object::context_object(), CTX_data_edit_object(), CTX_wm_operator_poll_msg_set(), Object::data, and geometry_attributes_poll().
Referenced by GEOMETRY_OT_color_attribute_duplicate().
|
static |
Definition at line 644 of file geometry_attributes.cc.
References BKE_id_attributes_active_color_name(), BKE_id_attributes_color_find(), blender::ed::object::context_object(), 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 311 of file geometry_attributes.cc.
References CD_PROP_FLOAT, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_attribute_add_exec(), geometry_attribute_add_invoke(), geometry_attribute_domain_itemf(), geometry_attributes_poll(), wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), RNA_def_string(), rna_enum_attribute_domain_items, rna_enum_attribute_type_items, and wmOperatorType::srna.
| void blender::ed::geometry::GEOMETRY_OT_attribute_convert | ( | wmOperatorType * | ot | ) |
Definition at line 885 of file geometry_attributes.cc.
References CD_PROP_FLOAT, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, Generic, geometry_attribute_convert_exec(), geometry_attribute_convert_invoke(), geometry_attribute_convert_poll(), geometry_attribute_convert_ui(), geometry_attribute_domain_itemf(), wmOperatorType::idname, int, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, wmOperatorType::poll, RNA_def_enum(), RNA_def_enum_funcs(), rna_enum_attribute_domain_items, rna_enum_attribute_type_items, wmOperatorType::srna, wmOperatorType::ui, and VertexGroup.
| void blender::ed::geometry::GEOMETRY_OT_attribute_remove | ( | wmOperatorType * | ot | ) |
Definition at line 375 of file geometry_attributes.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_attribute_remove_exec(), geometry_attributes_remove_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_add | ( | wmOperatorType * | ot | ) |
Definition at line 536 of file geometry_attributes.cc.
References CD_PROP_COLOR, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, geometry_attributes_poll(), geometry_color_attribute_add_exec(), geometry_color_attribute_add_invoke(), geometry_color_attribute_add_ui(), wmOperatorType::idname, wmOperatorType::invoke, MAX_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, wmOperatorType::poll, 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, rna_enum_color_attribute_type_items, wmOperatorType::srna, and wmOperatorType::ui.
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_convert | ( | wmOperatorType * | ot | ) |
Definition at line 853 of file geometry_attributes.cc.
References CD_PROP_COLOR, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_color_attribute_convert_exec(), geometry_color_attribute_convert_invoke(), geometry_color_attribute_convert_poll(), geometry_color_attribute_convert_ui(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, blender::bke::Point, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), rna_enum_color_attribute_domain_items, rna_enum_color_attribute_type_items, wmOperatorType::srna, and wmOperatorType::ui.
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 718 of file geometry_attributes.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_color_attribute_duplicate_exec(), geometry_color_attributes_duplicate_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_remove | ( | wmOperatorType * | ot | ) |
Definition at line 660 of file geometry_attributes.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_color_attribute_remove_exec(), geometry_color_attributes_remove_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
| void blender::ed::geometry::GEOMETRY_OT_color_attribute_render_set | ( | wmOperatorType * | ot | ) |
Definition at line 604 of file geometry_attributes.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_attributes_poll(), geometry_color_attribute_set_render_exec(), wmOperatorType::idname, MAX_NAME, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
| void blender::ed::geometry::GEOMETRY_OT_execute_node_group | ( | wmOperatorType * | ot | ) |
Definition at line 852 of file node_group_operator.cc.
References wmOperatorType::depends_on_cursor, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::get_description, wmOperatorType::get_name, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, 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(), wmOperatorType::srna, wmOperatorType::ui, wmOperatorType::ui_poll, and WM_operator_properties_id_lookup().
| void blender::ed::geometry::GEOMETRY_OT_geometry_randomization | ( | wmOperatorType * | ot | ) |
Definition at line 39 of file geometry_randomization.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, geometry_randomization_exec(), geometry_randomization_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), and wmOperatorType::srna.
|
static |
Definition at line 26 of file geometry_randomization.cc.
References 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 20 of file geometry_randomization.cc.
References G, wmOperator::ptr, RNA_boolean_set(), and WM_operator_props_popup().
Referenced by GEOMETRY_OT_geometry_randomization().
|
static |
Definition at line 87 of file node_group_operator.cc.
References blender::ed::asset::asset_local_id_ensure_imported(), CTX_data_main(), ID_NT, 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 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 1104 of file node_group_operator.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_SCULPT, 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 106 of file node_group_operator.cc.
References BKE_report(), get_asset_or_local_node_group(), NTREE_GEOMETRY, ptr, and RPT_ERROR.
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 175 of file node_group_operator.cc.
References blender::nodes::GeoNodesOperatorData::active_edge_index, blender::nodes::GeoNodesOperatorData::active_face_index, blender::nodes::GeoNodesOperatorData::active_point_index, BKE_curves_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(), blender::bke::GeometrySet::from_curves(), blender::bke::GeometrySet::from_mesh(), blender::bke::GeometrySet::from_pointcloud(), OB_CURVES, OB_MESH, and OB_POINTCLOUD.
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 128 of file node_group_operator.cc.
References log().
Referenced by node_group_operator_static_eval_log(), and run_node_group_exec().
|
static |
Definition at line 1059 of file node_group_operator.cc.
References get_static_item_tree(), Object::mode, and Object::type.
|
static |
Definition at line 1001 of file node_group_operator.cc.
References OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, 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().
| MenuType blender::ed::geometry::node_group_operator_assets_menu | ( | ) |
Definition at line 1234 of file node_group_operator.cc.
References asset_menu_poll(), blender::ed::asset::list::asset_reading_region_listen_fn(), catalog_assets_draw(), ContextDependent, and STRNCPY.
Referenced by ED_spacetype_view3d().
| MenuType blender::ed::geometry::node_group_operator_assets_menu_unassigned | ( | ) |
Definition at line 1333 of file node_group_operator.cc.
References asset_menu_poll(), blender::ed::asset::list::asset_reading_region_listen_fn(), catalog_assets_draw_unassigned(), ContextDependent, N_, and STRNCPY.
Referenced by ED_spacetype_view3d().
| const GeoOperatorLog & blender::ed::geometry::node_group_operator_static_eval_log | ( | ) |
Definition at line 134 of file node_group_operator.cc.
References get_static_eval_log().
Referenced by blender::nodes::geo_eval_log::GeoModifierLog::get_tree_log_by_zone_for_node_editor().
|
static |
Definition at line 414 of file node_group_operator.cc.
References BKE_id_is_editable(), ELEM, OB_CURVES, OB_MESH, and OB_POINTCLOUD.
Referenced by gather_supported_objects().
| void blender::ed::geometry::register_rna_properties_for_attribute_types | ( | StructRNA & | srna | ) |
Definition at line 83 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(), and MESH_OT_attribute_set().
|
static |
Definition at line 404 of file node_group_operator.cc.
References IDProperty::data, blender::nodes::GeoNodesOperatorDepsgraphs::get_evaluated_id(), IDP_foreach_property(), IDP_Id, IDP_TYPE_FILTER_ID, and IDPropertyData::pointer.
Referenced by run_node_group_exec().
|
static |
Definition at line 389 of file node_group_operator.cc.
References blender::bke::idprop::create_group(), 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 116 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_INT32, CD_PROP_INT32_2D, CD_PROP_INT8, blender::bke::custom_data_type_to_cpp_type(), 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(), and blender::ed::curves::set_attribute_exec().
| void blender::ed::geometry::rna_property_for_attribute_type_set_value | ( | PointerRNA & | ptr, |
| PropertyRNA & | prop, | ||
| const GPointer | value ) |
Definition at line 158 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_INT32, CD_PROP_INT32_2D, CD_PROP_INT8, blender::bke::cpp_type_to_custom_data_type(), blender::ColorSceneLinearByteEncoded4b< Alpha >::decode(), ptr, RNA_property_boolean_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), and RNA_property_int_set_array().
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), and blender::ed::curves::set_attribute_invoke().
| PropertyRNA * blender::ed::geometry::rna_property_for_type | ( | PointerRNA & | ptr, |
| const eCustomDataType | type ) |
Definition at line 78 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(), and blender::ed::curves::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_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(), and blender::ed::curves::set_attribute_ui().
|
static |
Definition at line 826 of file node_group_operator.cc.
References BKE_asset_metadata_idprop_find(), CTX_data_main(), GEO_NODE_ASSET_WAIT_FOR_CURSOR, blender::asset_system::AssetRepresentation::get_metadata(), 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 466 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, BKE_report(), BLI_SCOPED_DEFER, build_extra_depsgraph(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), DEG_get_evaluated_id(), DEG_id_is_fully_evaluated(), DEG_id_tag_update(), blender::nodes::ensure_geometry_nodes_lazy_function_graph(), blender::nodes::geo_eval_log::GeoTreeLog::ensure_node_warnings(), blender::nodes::execute_geometry_nodes_on_geometry(), 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, ID_RECALC_GEOMETRY, IDP_FreeProperty_ex(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::ed::geometry::GeoOperatorLog::log, blender::nodes::GeoNodesOperatorData::mode, Object::mode, NC_GEOM, ND_DATA, blender::ed::geometry::GeoOperatorLog::node_group_name, node_tree, OPERATOR_CANCELLED, blender::nodes::GeoNodesCallData::operator_data, OPERATOR_FINISHED, wmOperator::properties, wmOperator::ptr, 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, scene, store_result_geometry(), STREQ, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), and WM_event_add_notifier().
Referenced by GEOMETRY_OT_execute_node_group(), and run_node_group_invoke().
|
static |
Definition at line 648 of file node_group_operator.cc.
References AssetMetaData::description, blender::asset_system::AssetRepresentation::get_metadata(), 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 811 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 632 of file node_group_operator.cc.
References get_node_group(), node_tree, 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 775 of file node_group_operator.cc.
References CTX_data_main(), draw_property_for_socket(), get_node_group(), wmOperator::layout, node_tree, wmOperator::properties, wmOperator::ptr, RNA_main_pointer_create(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by GEOMETRY_OT_execute_node_group().
|
static |
Definition at line 797 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 316 of file node_group_operator.cc.
References ID_GR, ID_IM, ID_MA, ID_OB, ID_TE, SOCK_BOOLEAN, 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:
exec callback used for operator redo. Redo is meant to just call the operator again with the exact same properties.exec call. Definition at line 600 of file node_group_operator.cc.
References blender::MatBase< T, NumCol, NumRow, Alignment >::base_ptr(), BLI_rcti_size_x(), BLI_rcti_size_y(), CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), blender::MatBase< float, 4, 4 >::identity(), RegionView3D::is_persp, wmEvent::mval, wmOperator::ptr, RNA_boolean_set(), RNA_float_set_array(), RNA_int_set_array(), RegionView3D::viewmat, blender::math::QuaternionBase< T >::w, and RegionView3D::winmat.
Referenced by run_node_group_invoke().
|
static |
Definition at line 207 of file node_group_operator.cc.
References BKE_editmesh_looptris_and_normals_calc(), BKE_id_free(), BKE_mesh_clear_geometry(), BKE_mesh_nomain_to_mesh(), BKE_object_material_from_eval_data(), BKE_pointcloud_nomain_to_pointcloud(), BKE_report(), BKE_sculptsession_free_pbvh(), CustomData_free(), EDBM_mesh_make_from_mesh(), Curves::geometry, blender::ed::sculpt_paint::undo::geometry_begin(), blender::ed::sculpt_paint::undo::geometry_end(), Curves::id, Mesh::id, PointCloud::id, Mesh::key, OB_CURVES, OB_MESH, OB_MODE_EDIT, OB_MODE_SCULPT, OB_POINTCLOUD, wmOperator::reports, and RPT_WARNING.
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 1347 of file node_group_operator.cc.
References blender::asset_system::all_library_reference(), blender::asset_system::AssetCatalogTreeItem::catalog_path(), col, CTX_data_active_object(), get_static_item_tree(), blender::ed::asset::list::library_get_once_available(), blender::asset_system::AssetCatalogPath::str(), tree, uiItemMContents(), uiLayoutColumn(), and uiLayoutSetContextString().
| void blender::ed::geometry::ui_template_node_operator_asset_root_items | ( | uiLayout & | layout, |
| const bContext & | C ) |
Definition at line 1373 of file node_group_operator.cc.
References build_catalog_tree(), blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), CTX_data_active_object(), get_builtin_menus(), get_static_item_tree(), Object::mode, blender::asset_system::AssetCatalogPath::str(), tree, Object::type, uiItemM(), and unassigned_local_poll().
|
static |
Definition at line 1245 of file node_group_operator.cc.
References asset_flag_for_context(), CTX_data_active_object(), CTX_data_main(), flag, LISTBASE_FOREACH, and Main::nodetrees.
Referenced by ui_template_node_operator_asset_root_items().