|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "DNA_ID.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "BLT_translation.hh"#include "BLI_blenlib.h"#include "BLI_map.hh"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_idprop.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "wm.hh"#include "wm_event_system.hh"Go to the source code of this file.
Classes | |
| struct | MacroData |
Macros | |
| #define | UNDOCUMENTED_OPERATOR_TIP N_("(undocumented operator)") |
Operator Type Registry | |
| static int | ot_prop_basic_count = -1 |
| static wmOperatorTypeMap & | get_operators_map () |
| const wmOperatorTypeMap & | WM_operatortype_map () |
| wmOperatorType * | WM_operatortype_find (const char *idname, bool quiet) |
Operator Registry.
Definition in file wm_operator_type.cc.
Definition at line 41 of file wm_operator_type.cc.
Referenced by wm_operatortype_append__end(), WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
|
static |
Definition at line 49 of file wm_operator_type.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve().
Referenced by wm_operatortype_append__end(), WM_operatortype_append_macro(), WM_operatortype_append_macro_ptr(), WM_operatortype_find(), wm_operatortype_free(), WM_operatortype_idname_visit_for_search(), WM_operatortype_last_properties_clear_all(), WM_operatortype_map(), and WM_operatortype_remove_ptr().
|
static |
Definition at line 187 of file wm_operator_type.cc.
References ListBase::first, wmOperatorType::idname, IDP_FreeProperty(), wmOperatorType::last_properties, wmOperatorType::macro, MEM_freeN(), ot, wmOperatorType::rna_ext, ExtensionRNA::srna, and wm_operatortype_free_macro().
Referenced by wm_operatortype_free().
|
static |
Definition at line 457 of file wm_operator_type.cc.
References wmOperatorType::cancel, OPERATOR_CANCELLED, wmOperator::opm, wmOperator::type, and wm_macro_end().
Referenced by WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
|
static |
Definition at line 290 of file wm_operator_type.cc.
References wmOperator::customdata, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and MacroData::retval.
Referenced by wm_macro_cancel(), wm_macro_exec(), wm_macro_invoke_internal(), and wm_macro_modal().
|
static |
Definition at line 313 of file wm_operator_type.cc.
References CLOG_WARN, wmOperator::customdata, wmOperator::flag, LISTBASE_FOREACH, wmOperator::macro, OP_IS_REPEAT, OP_IS_REPEAT_LAST, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, MacroData::retval, CLG_LogRef::type, WM_LOG_OPERATORS, wm_macro_end(), and wm_macro_start().
Referenced by WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
|
static |
Definition at line 380 of file wm_operator_type.cc.
References ListBase::first, wmOperator::macro, wm_macro_invoke_internal(), and wm_macro_start().
Referenced by WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
|
static |
Definition at line 344 of file wm_operator_type.cc.
References BLI_movelisttolist(), wmOperator::customdata, wmOperatorType::exec, wmOperator::flag, wmOperatorType::invoke, ReportList::list, wmOperator::next, OP_IS_REPEAT, OP_IS_REPEAT_LAST, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, wmOperator::reports, MacroData::retval, wmOperator::type, and wm_macro_end().
Referenced by wm_macro_invoke(), and wm_macro_modal().
|
static |
Definition at line 386 of file wm_operator_type.cc.
References BLI_findptr(), BLI_remlink(), CLOG_ERROR, CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, wmOperator::flag, wmOperatorType::flag, wmEventHandler_Op::head, wmOperatorType::modal, wmWindow::modalhandlers, wmOperator::next, offsetof, OP_IS_MODAL_GRAB_CURSOR, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, wmOperator::opm, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_GRAB_CURSOR_XY, OPTYPE_GRAB_CURSOR_Y, wmOperator::ptr, MacroData::retval, wmOperator::type, WM_cursor_grab_enable(), WM_CURSOR_WRAP_NONE, WM_CURSOR_WRAP_X, WM_CURSOR_WRAP_XY, WM_CURSOR_WRAP_Y, wm_event_free_handler(), WM_LOG_OPERATORS, wm_macro_end(), wm_macro_invoke_internal(), WM_operator_properties_clear(), and wrap().
Referenced by WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
|
static |
Definition at line 283 of file wm_operator_type.cc.
References wmOperator::customdata, and MEM_callocN.
Referenced by wm_macro_exec(), and wm_macro_invoke().
| bool WM_operator_depends_on_cursor | ( | bContext & | C, |
| wmOperatorType & | ot, | ||
| PointerRNA * | properties ) |
Check the OPTYPE_DEPENDS_ON_CURSOR flag and the callback.
Definition at line 615 of file wm_operator_type.cc.
References wmOperatorType::depends_on_cursor, wmOperatorType::flag, OPTYPE_DEPENDS_ON_CURSOR, and ot.
Referenced by WM_operator_name_call_ptr_with_depends_on_cursor().
| void WM_operatortype_append | ( | void(* | opfunc )(wmOperatorType *) | ) |
Definition at line 137 of file wm_operator_type.cc.
References ot, wm_operatortype_append__begin(), and wm_operatortype_append__end().
Referenced by action_operatortypes(), buttons_operatortypes(), clip_operatortypes(), blender::ed::object::collection_exporter_register(), console_operatortypes(), ED_operatortypes_anim(), ED_operatortypes_animchannels(), ED_operatortypes_armature(), ED_operatortypes_curve(), ED_operatortypes_edutils(), ED_operatortypes_geometry(), ED_operatortypes_gpencil_legacy(), ED_operatortypes_grease_pencil_bake_animation(), ED_operatortypes_grease_pencil_draw(), ED_operatortypes_grease_pencil_edit(), ED_operatortypes_grease_pencil_frames(), ED_operatortypes_grease_pencil_interpolate(), ED_operatortypes_grease_pencil_join(), ED_operatortypes_grease_pencil_layers(), ED_operatortypes_grease_pencil_lineart(), ED_operatortypes_grease_pencil_material(), ED_operatortypes_grease_pencil_modes(), ED_operatortypes_grease_pencil_primitives(), ED_operatortypes_grease_pencil_select(), ED_operatortypes_grease_pencil_trace(), ED_operatortypes_grease_pencil_vertex_paint(), ED_operatortypes_grease_pencil_weight_paint(), ED_operatortypes_io(), ED_operatortypes_lattice(), ED_operatortypes_marker(), ED_operatortypes_mask(), ED_operatortypes_mesh(), ED_operatortypes_metaball(), ED_operatortypes_paint(), ED_operatortypes_render(), ED_operatortypes_scene(), ED_operatortypes_screen(), ED_operatortypes_sculpt_curves(), ED_operatortypes_sound(), ED_operatortypes_ui(), ED_operatortypes_userpref(), ED_operatortypes_uvedit(), ED_operatortypes_view2d(), ED_operatortypes_workspace(), file_operatortypes(), graphedit_operatortypes(), image_operatortypes(), info_operatortypes(), nla_operatortypes(), blender::nodes::node_geo_attribute_capture_cc::node_operators(), blender::nodes::node_geo_bake_cc::node_operators(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_operators(), blender::nodes::node_geo_index_switch_cc::node_operators(), blender::nodes::node_geo_menu_switch_cc::node_operators(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_operators(), blender::nodes::node_geo_simulation_cc::sim_output_node::node_operators(), blender::ed::space_node::node_operatortypes(), blender::ed::object::object_modifier_add_asset_register(), blender::ed::asset::operatortypes_asset(), operatortypes_boids(), blender::ed::curves::operatortypes_curves(), operatortypes_dynamicpaint(), operatortypes_fluid(), blender::ed::object::operatortypes_object(), operatortypes_particle(), operatortypes_pointcache(), blender::ed::sculpt_paint::operatortypes_sculpt(), blender::ed::outliner::outliner_operatortypes(), script_operatortypes(), sequencer_operatortypes(), blender::ed::spreadsheet::spreadsheet_operatortypes(), text_operatortypes(), transform_operatortypes(), view3d_operatortypes(), wm_operatortypes_register(), and wm_xr_operatortypes_register().
|
static |
Definition at line 100 of file wm_operator_type.cc.
References BLENDER_RNA, BLI_assert, BLT_I18NCONTEXT_OPERATOR_DEFAULT, wmOperatorType::cursor_pending, MEM_callocN, ot, ot_prop_basic_count, RNA_def_struct_property_tags(), RNA_def_struct_ptr(), RNA_def_struct_translation_context(), rna_enum_operator_property_tag_items, wmOperatorType::srna, wmOperatorType::translation_context, and WM_CURSOR_PICK_AREA.
Referenced by WM_operatortype_append(), and WM_operatortype_append_ptr().
|
static |
Definition at line 116 of file wm_operator_type.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLENDER_RNA, BLI_assert, CLOG_ERROR, wmOperatorType::description, get_operators_map(), wmOperatorType::idname, wmOperatorType::name, ot, RNA_def_struct_identifier(), RNA_def_struct_ui_text(), wmOperatorType::srna, UNDOCUMENTED_OPERATOR_TIP, WM_LOG_OPERATORS, WM_operator_bl_idname_is_valid(), and WM_operatortype_props_advanced_end().
Referenced by WM_operatortype_append(), and WM_operatortype_append_ptr().
| wmOperatorType * WM_operatortype_append_macro | ( | const char * | idname, |
| const char * | name, | ||
| const char * | description, | ||
| int | flag ) |
Definition at line 467 of file wm_operator_type.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLENDER_RNA, BLI_assert, BLT_I18NCONTEXT_OPERATOR_DEFAULT, wmOperatorType::cancel, CLOG_ERROR, wmOperatorType::description, wmOperatorType::exec, flag, wmOperatorType::flag, get_operators_map(), wmOperatorType::idname, wmOperatorType::invoke, MEM_callocN, wmOperatorType::modal, wmOperatorType::name, OPTYPE_MACRO, ot, wmOperatorType::poll, RNA_def_struct_identifier(), RNA_def_struct_ptr(), RNA_def_struct_translation_context(), RNA_def_struct_ui_text(), wmOperatorType::rna_ext, RNA_struct_translation_context(), ExtensionRNA::srna, wmOperatorType::srna, wmOperatorType::translation_context, UNDOCUMENTED_OPERATOR_TIP, WM_LOG_OPERATORS, wm_macro_cancel(), wm_macro_exec(), wm_macro_invoke(), wm_macro_modal(), WM_operator_bl_idname_is_valid(), and WM_operatortype_find().
Referenced by ED_operatormacros_action(), ED_operatormacros_armature(), ED_operatormacros_clip(), ED_operatormacros_curve(), ED_operatormacros_graph(), ED_operatormacros_grease_pencil(), ED_operatormacros_mask(), ED_operatormacros_mesh(), ED_operatormacros_metaball(), ED_operatormacros_nla(), ED_operatormacros_node(), ED_operatormacros_paint(), ED_operatormacros_sequencer(), ED_operatormacros_uvedit(), blender::ed::curves::operatormacros_curves(), and blender::ed::object::operatormacros_object().
| void WM_operatortype_append_macro_ptr | ( | void(* | opfunc )(wmOperatorType *ot, void *userdata), |
| void * | userdata ) |
Definition at line 512 of file wm_operator_type.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLENDER_RNA, BLI_assert, BLT_I18NCONTEXT_OPERATOR_DEFAULT, wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, get_operators_map(), wmOperatorType::idname, wmOperatorType::invoke, MEM_callocN, wmOperatorType::modal, wmOperatorType::name, OPTYPE_MACRO, ot, wmOperatorType::poll, RNA_def_struct_identifier(), RNA_def_struct_ptr(), RNA_def_struct_translation_context(), RNA_def_struct_ui_text(), wmOperatorType::srna, wmOperatorType::translation_context, UNDOCUMENTED_OPERATOR_TIP, wm_macro_cancel(), wm_macro_exec(), wm_macro_invoke(), wm_macro_modal(), and WM_operator_bl_idname_is_valid().
| void WM_operatortype_append_ptr | ( | void(* | opfunc )(wmOperatorType *, void *), |
| void * | userdata ) |
Definition at line 144 of file wm_operator_type.cc.
References ot, wm_operatortype_append__begin(), and wm_operatortype_append__end().
| std::string WM_operatortype_description | ( | bContext * | C, |
| wmOperatorType * | ot, | ||
| PointerRNA * | properties ) |
Definition at line 585 of file wm_operator_type.cc.
References wmOperatorType::get_description, ot, RNA_struct_ui_description(), and wmOperatorType::srna.
Referenced by UI_but_extra_icon_string_get_tooltip(), UI_but_string_get_rna_tooltip(), and WM_operatortype_description_or_name().
| std::string WM_operatortype_description_or_name | ( | bContext * | C, |
| wmOperatorType * | ot, | ||
| PointerRNA * | properties ) |
Use when we want a label, preferring the description.
Definition at line 601 of file wm_operator_type.cc.
References ot, WM_operatortype_description(), and WM_operatortype_name().
Referenced by ui_tooltip_data_from_gizmo().
| wmOperatorType * WM_operatortype_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 68 of file wm_operator_type.cc.
References CLOG_INFO, get_operators_map(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default_as(), OP_MAX_TYPENAME, ot, WM_LOG_OPERATORS, and WM_operator_bl_idname().
Referenced by add_driver_button_menu_exec(), bone_mouse_select_menu(), blender::ed::geometry::catalog_assets_draw(), blender::ed::object::catalog_assets_draw(), blender::ed::geometry::catalog_assets_draw_unassigned(), blender::ed::object::collection_exporter_add_exec(), blender::ed::object::collection_exporter_export(), blender::ed::object::collection_exporter_menu_draw(), constraint_reorder(), blender::ed::asset::shelf::create_activate_operator_params(), doc_view_manual_ui_context_exec(), drop_import_file_poll_file_handlers(), drop_import_file_tooltip(), file_browse_invoke(), file_directory_enter_handle(), file_draw_invalid_asset_library_hint(), file_external_operation_exec(), file_handler_import_operator_create_ptr(), file_os_operations_menu_draw(), ghost_event_proc(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup_init_properties_from_twtype(), blender::ed::outliner::id_remap_fn(), image_file_browse_invoke(), is_brush_related_tool(), keymap_handler_log_kmi_op_str(), blender::ed::outliner::lib_reload_fn(), blender::ed::outliner::lib_relocate_fn(), blender::ed::space_node::link_drag_search_exec_fn(), menu_item_enum_opname_menu_active(), blender::ed::object::mode_compat_set(), blender::ed::object::mode_set_ex(), modifier_reorder(), blender::ed::space_node::node_add_group_asset_invoke(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), object_mouse_select_menu(), ot_lookup_from_py_string(), blender::ed::outliner::outliner_item_drag_drop_invoke(), blender::ed::outliner::outliner_lib_relocate_invoke_do(), blender::ed::outliner::outliner_operator_menu(), panel_activate_state(), preferences_extension_url_drop_invoke(), pyop_as_string(), pyop_call(), pyop_poll(), PYOP_wrap_macro_define(), screen_user_menu_draw(), shaderfx_reorder(), blender::ed::transform::special_aftertrans_update__node(), template_operator_property_buts_draw_single(), toolsystem_ref_set_by_brush_type(), transform_from_gizmo_invoke(), transform_modal(), ui_but_anim_decorate_cb(), UI_but_extra_operator_icon_add(), UI_but_is_tool(), ui_but_menu_add_path_operators(), UI_but_operatortype_get_from_enum_menu(), ui_but_predefined_extra_operator_icons_add(), ui_handle_menu_letter_press_search(), UI_list_custom_activate_operator_set(), UI_list_custom_drag_operator_set(), ui_popup_context_menu_for_button(), uiDefButO(), uiDefIconButO(), uiDefIconTextButO(), uiItemBooleanO(), uiItemEnumO(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemFullO(), uiItemIntO(), uiItemMenuEnumFullO(), uiItemsFullEnumO(), uiItemStringO(), uiTemplateCollectionExporters(), uiTemplateEditModeSelection(), blender::ed::object::unassigned_assets_draw(), unpack_menu(), view3d_interactive_add_modal(), view3d_navigate_modal_fn(), view3d_panel_vgroup(), weight_sample_group_invoke(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_setup(), WIDGETGROUP_xform_shear_setup(), wm_drop_import_file_exec(), wm_drop_import_file_invoke(), WM_dropbox_add(), wm_dropbox_item_update_ot(), WM_event_match_keymap_item(), wm_handler_operator_call(), wm_handlers_do_gizmo_handler(), wm_keymap_item_find(), wm_keymap_item_find_in_keymap(), wm_keymap_item_properties_update_ot(), WM_menu_name_call(), WM_modalkeymap_assign(), wm_operator_create(), WM_operator_name_call(), WM_operator_name_call_ptr(), WM_operator_name_call_ptr_with_depends_on_cursor(), WM_operator_name_call_with_properties(), WM_operator_name_poll(), WM_operator_poll(), WM_operator_properties_create(), WM_operator_repeat_check(), WM_operator_ui_poll(), WM_operatortype_append_macro(), WM_operatortype_macro_define(), WM_operatortype_remove(), WM_operatortype_remove_ptr(), wm_test_autorun_revert_action_exec(), WM_toolsystem_ref_set_by_id_ex(), WM_window_cursor_keymap_status_refresh(), WM_xr_actionmap_item_properties_update_ot(), and workspace_add_menu().
| void wm_operatortype_free | ( | ) |
Definition at line 205 of file wm_operator_type.cc.
References get_operators_map(), operatortype_ghash_free_cb(), and ot.
Referenced by WM_exit_ex().
|
static |
Definition at line 564 of file wm_operator_type.cc.
References BLI_freelistN(), LISTBASE_FOREACH, wmOperatorType::macro, ot, and WM_operator_properties_free().
Referenced by operatortype_ghash_free_cb(), and WM_operatortype_remove_ptr().
| void WM_operatortype_idname_visit_for_search | ( | const bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | edit_text, | ||
| blender::FunctionRef< void(StringPropertySearchVisitParams)> | visit_fn ) |
Definition at line 255 of file wm_operator_type.cc.
References get_operators_map(), wmOperatorType::idname, wmOperatorType::name, OP_MAX_TYPENAME, ot, StringPropertySearchVisitParams::text, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values(), and WM_operator_py_idname().
| void WM_operatortype_last_properties_clear_all | ( | ) |
Remove memory of all previously executed tools.
Definition at line 245 of file wm_operator_type.cc.
References get_operators_map(), IDP_FreeProperty(), wmOperatorType::last_properties, ot, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
Referenced by wm_file_read_post().
| wmOperatorTypeMacro * WM_operatortype_macro_define | ( | wmOperatorType * | ot, |
| const char * | idname ) |
Definition at line 543 of file wm_operator_type.cc.
References BLI_addtail(), wmOperatorTypeMacro::idname, wmOperatorType::macro, MEM_callocN, StructRNA::name, ot, wmOperatorTypeMacro::properties, wmOperatorTypeMacro::ptr, RNA_def_pointer_runtime(), wmOperatorType::srna, STRNCPY, WM_operator_properties_alloc(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by ED_operatormacros_action(), ED_operatormacros_armature(), ED_operatormacros_clip(), ED_operatormacros_curve(), ED_operatormacros_graph(), ED_operatormacros_grease_pencil(), ED_operatormacros_mask(), ED_operatormacros_mesh(), ED_operatormacros_metaball(), ED_operatormacros_nla(), ED_operatormacros_node(), ED_operatormacros_paint(), ED_operatormacros_sequencer(), ED_operatormacros_uvedit(), blender::ed::curves::operatormacros_curves(), blender::ed::object::operatormacros_object(), and PYOP_wrap_macro_define().
| const wmOperatorTypeMap & WM_operatortype_map | ( | ) |
Definition at line 60 of file wm_operator_type.cc.
References get_operators_map().
Referenced by menu_items_from_all_operators(), operator_search_update_fn(), and pyop_dir().
| std::string WM_operatortype_name | ( | wmOperatorType * | ot, |
| PointerRNA * | properties ) |
Definition at line 575 of file wm_operator_type.cc.
References wmOperatorType::get_name, ot, RNA_struct_ui_name(), and wmOperatorType::srna.
Referenced by dropbox_tooltip(), file_draw_invalid_asset_library_hint(), file_panel_operator_header(), blender::ed::io::filesel_drop_import_invoke(), fileselect_ensure_updated_file_params(), hud_panel_operator_redo_draw_header(), insert_key_menu_invoke(), menu_items_from_ui_create_item_from_button(), blender::ed::outliner::outliner_operator_menu(), repeat_history_invoke(), screen_area_options_invoke(), template_operator_property_buts_draw_single(), UI_but_extra_icon_string_get_label(), UI_but_string_get_rna_label(), ui_but_user_menu_add(), uiItemFullO_ptr_ex(), uiItemMenuEnumFullO_ptr(), uiTemplateOperatorRedoProperties(), weight_sample_group_invoke(), wm_block_create_redo(), wm_enum_search_menu(), WM_menu_invoke_ex(), WM_operator_confirm_ex(), WM_operator_props_dialog_popup(), WM_operatortype_description_or_name(), and WM_window_cursor_keymap_status_refresh().
| void WM_operatortype_props_advanced_begin | ( | wmOperatorType * | ot | ) |
Tag all operator-properties of ot defined after calling this, until the next WM_operatortype_props_advanced_end call (if available), with OP_PROP_TAG_ADVANCED. Previously defined ones properties not touched.
Calling this multiple times without a call to WM_operatortype_props_advanced_end, all calls after the first one are ignored. Meaning all proprieties defined after the first call are tagged as advanced.
This doesn't do the actual tagging, WM_operatortype_props_advanced_end does which is called for all operators during registration (see wm_operatortype_append__end).
Definition at line 214 of file wm_operator_type.cc.
References ot, ot_prop_basic_count, RNA_struct_count_properties(), and wmOperatorType::srna.
Referenced by MESH_OT_loopcut(), MESH_OT_mark_seam(), MESH_OT_merge(), MESH_OT_subdivide(), MESH_OT_vertices_smooth(), MESH_OT_vertices_smooth_laplacian(), TRANSFORM_OT_bbone_resize(), TRANSFORM_OT_bend(), TRANSFORM_OT_create_orientation(), TRANSFORM_OT_edge_bevelweight(), TRANSFORM_OT_edge_crease(), TRANSFORM_OT_edge_slide(), TRANSFORM_OT_push_pull(), TRANSFORM_OT_resize(), TRANSFORM_OT_rotate(), TRANSFORM_OT_seq_slide(), TRANSFORM_OT_shear(), TRANSFORM_OT_shrink_fatten(), TRANSFORM_OT_skin_resize(), TRANSFORM_OT_tilt(), TRANSFORM_OT_tosphere(), TRANSFORM_OT_trackball(), TRANSFORM_OT_transform(), TRANSFORM_OT_translate(), TRANSFORM_OT_vert_crease(), and TRANSFORM_OT_vert_slide().
| void WM_operatortype_props_advanced_end | ( | wmOperatorType * | ot | ) |
Tags all operator-properties of ot defined since the first WM_operatortype_props_advanced_begin call, or the last WM_operatortype_props_advanced_end call, with OP_PROP_TAG_ADVANCED.
Definition at line 222 of file wm_operator_type.cc.
References OP_PROP_TAG_ADVANCED, ot, ot_prop_basic_count, RNA_STRUCT_BEGIN, RNA_STRUCT_END, WM_operator_properties_create_ptr(), and WM_operatortype_prop_tag.
Referenced by wm_operatortype_append__end().
| bool WM_operatortype_remove | ( | const char * | idname | ) |
Definition at line 174 of file wm_operator_type.cc.
References ot, WM_operatortype_find(), and WM_operatortype_remove_ptr().
| void WM_operatortype_remove_ptr | ( | wmOperatorType * | ot | ) |
Called on initialize WM_exit().
Definition at line 153 of file wm_operator_type.cc.
References BLENDER_RNA, BLI_assert, ListBase::first, get_operators_map(), wmOperatorType::idname, IDP_FreeProperty(), wmOperatorType::last_properties, wmOperatorType::macro, MEM_freeN(), ot, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove(), RNA_struct_free(), wmOperatorType::srna, WM_keyconfig_update_operatortype(), WM_operatortype_find(), and wm_operatortype_free_macro().
Referenced by WM_operatortype_remove().
|
static |
Counter for operator-properties that should not be tagged with OP_PROP_TAG_ADVANCED.
Definition at line 66 of file wm_operator_type.cc.
Referenced by wm_operatortype_append__begin(), WM_operatortype_props_advanced_begin(), and WM_operatortype_props_advanced_end().