|
Blender
V2.93
|
#include <ctype.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_constraint_types.h"#include "DNA_modifier_types.h"#include "DNA_scene_types.h"#include "DNA_windowmanager_types.h"#include "BLI_alloca.h"#include "BLI_blenlib.h"#include "BLI_dynstr.h"#include "BLI_ghash.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "BLF_api.h"#include "BLT_translation.h"#include "BKE_anim_data.h"#include "BKE_collection.h"#include "BKE_context.h"#include "BKE_fcurve.h"#include "BKE_idprop.h"#include "BKE_idtype.h"#include "BKE_main.h"#include "BKE_node.h"#include "BKE_report.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "WM_api.h"#include "WM_message.h"#include "DNA_object_types.h"#include "WM_types.h"#include "rna_access_internal.h"#include "rna_internal.h"Go to the source code of this file.
Classes | |
| struct | IDP_Chain |
Macros | |
| #define | RAW_GET(dtype, var, raw, a) |
| #define | RAW_SET(dtype, raw, a, var) |
Typedefs | |
| typedef struct IDP_Chain | IDP_Chain |
Variables | |
| const PointerRNA | PointerRNA_NULL = {NULL} |
| static PropertyRNA * | typemap [IDP_NUMTYPES] |
| static PropertyRNA * | arraytypemap [IDP_NUMTYPES] |
| static char | rna_struct_state_owner [64] |
| #define RAW_GET | ( | dtype, | |
| var, | |||
| raw, | |||
| a | |||
| ) |
Definition at line 4377 of file rna_access.c.
| #define RAW_SET | ( | dtype, | |
| raw, | |||
| a, | |||
| var | |||
| ) |
Definition at line 4404 of file rna_access.c.
| void _RNA_warning | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 8149 of file rna_access.c.
References PyC_LineSpit().
|
static |
Definition at line 6900 of file rna_access.c.
Referenced by rna_array_as_string_elem(), and RNA_property_as_string().
|
static |
Definition at line 3931 of file rna_access.c.
References PropertyRNA::flag, PropertyRNA::flag_override, ID_IS_OVERRIDE_LIBRARY, PropertyRNA::magic, NULL, PointerRNA::owner_id, PROP_IDPROPERTY, PROPOVERRIDE_LIBRARY_INSERTION, ptr, RNA_MAGIC, and RNA_property_overridable_get().
Referenced by RNA_property_collection_add(), RNA_property_collection_clear(), RNA_property_collection_move(), and RNA_property_collection_remove().
|
static |
Definition at line 6981 of file rna_access.c.
References BLI_assert, len, MEM_freeN, ptr, rna_array_as_string_alloc(), rna_array_as_string_recursive(), RNA_MAX_ARRAY_DIMENSION, RNA_property_array_dimension(), and type.
Referenced by RNA_property_as_string().
|
static |
Definition at line 6905 of file rna_access.c.
References BLI_assert, len, MEM_mallocN, NULL, PROP_BOOLEAN, PROP_FLOAT, PROP_INT, ptr, RNA_property_boolean_get_array(), RNA_property_float_get_array(), RNA_property_int_get_array(), and type.
Referenced by rna_array_as_string().
|
static |
Definition at line 6930 of file rna_access.c.
References BLI_assert, BLI_dynstr_appendf(), bool_as_py_string(), len, PROP_BOOLEAN, PROP_FLOAT, PROP_INT, and type.
Referenced by rna_array_as_string_recursive().
|
static |
Definition at line 6961 of file rna_access.c.
References BLI_dynstr_append(), rna_array_as_string_elem(), and type.
Referenced by rna_array_as_string().
| PointerRNA rna_array_lookup_int | ( | PointerRNA * | ptr, |
| StructRNA * | type, | ||
| void * | data, | ||
| int | itemsize, | ||
| int | length, | ||
| int | index | ||
| ) |
Definition at line 4948 of file rna_access.c.
References data, length(), PointerRNA_NULL, ptr, rna_pointer_inherit_refine(), and type.
| void RNA_blender_rna_pointer_create | ( | PointerRNA * | r_ptr | ) |
Definition at line 189 of file rna_access.c.
References BLENDER_RNA, PointerRNA::data, NULL, PointerRNA::owner_id, RNA_BlenderRNA, and PointerRNA::type.
Referenced by BPY_rna_types(), pyrna_alloc_types(), pyrna_free_types(), and pyrna_unregister_class().
| bool RNA_boolean_get | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6261 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_boolean_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by action_unlink_exec(), actkeys_box_select_exec(), actkeys_box_select_invoke(), actkeys_clean_exec(), actkeys_clickselect_exec(), actkeys_paste_description(), actkeys_paste_exec(), actkeys_select_leftright_exec(), add_keyingset_button_exec(), add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cube_gizmo_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), advanced_panel_draw(), animchannels_box_select_exec(), animchannels_channel_select_keys_invoke(), animchannels_collapse_exec(), animchannels_expand_exec(), animchannels_mouseclick_invoke(), annotation_draw_exec(), annotation_draw_invoke(), apply_armature_pose2bones_exec(), armature_calc_roll_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_flip_names_exec(), armature_hide_exec(), armature_reveal_exec(), armature_select_hierarchy_exec(), armature_select_linked_exec(), armature_select_linked_pick_invoke(), armature_select_mirror_exec(), average_tracks_exec(), bake_init_api_data(), baking_panel_draw(), bone_select_menu_exec(), box_select_graph_exec(), brush_edit_apply(), brush_select_exec(), chaining_panel_draw(), change_frame_apply(), clear_key_button_exec(), clear_track_path_exec(), collection_isolate_exec(), collection_new_exec(), connect_hair_exec(), console_clear_exec(), console_history_append_exec(), console_history_cycle_exec(), constant_offset_draw(), constraint_delete_exec(), copy_data_path_button_exec(), copy_particle_systems_exec(), copy_to_selected_button_exec(), create_orientation_exec(), curve_draw_exec(), curve_draw_invoke(), curve_normals_make_consistent_exec(), custom_range_panel_draw(), data_panel_draw(), data_transfer_exec(), datalayout_transfer_exec(), delete_key_button_exec(), delete_key_exec(), dial_ghostarc_get_angles(), disconnect_hair_exec(), do_fill_tile(), dopesheet_select_channel_exec(), drop_color_invoke(), dt_layers_select_itemf(), duplicate_exec(), duplicate_particle_systems_exec(), ed_marker_box_select_invoke(), ed_marker_move_invoke(), ed_marker_select_exec(), edbm_bevel_calc(), edbm_bevel_modal(), edbm_bevel_update_status_text(), edbm_blend_from_shape_exec(), edbm_bridge_edge_loops_exec(), edbm_decimate_exec(), edbm_decimate_ui(), edbm_delete_edgeloop_exec(), edbm_delete_loose_exec(), edbm_dissolve_edges_exec(), edbm_dissolve_faces_exec(), edbm_dissolve_limited_exec(), edbm_dissolve_verts_exec(), edbm_do_smooth_laplacian_vertex_exec(), edbm_do_smooth_vertex_exec(), edbm_dupli_extrude_cursor_invoke(), edbm_edge_rotate_selected_exec(), edbm_extrude_edges_exec(), edbm_extrude_mesh(), edbm_fill_exec(), edbm_fill_grid_exec(), edbm_flip_normals_exec(), edbm_hide_exec(), edbm_inset_calc(), edbm_inset_modal(), edbm_inset_update_header(), edbm_intersect_boolean_exec(), edbm_loop_multiselect_exec(), edbm_loop_to_region_exec(), edbm_mark_seam_exec(), edbm_mark_sharp_exec(), edbm_merge_exec(), edbm_mod_weighted_strength_exec(), edbm_normals_make_consistent_exec(), edbm_normals_tools_exec(), edbm_offset_edgeloop_exec(), edbm_poke_face_exec(), edbm_polybuild_face_at_cursor_invoke(), edbm_remove_doubles_exec(), edbm_reveal_exec(), edbm_rip_invoke(), edbm_rotate_colors_exec(), edbm_rotate_uvs_exec(), edbm_select_face_by_sides_exec(), edbm_select_less_exec(), edbm_select_linked_pick_exec(), edbm_select_linked_pick_invoke(), edbm_select_loop_invoke(), edbm_select_loose_exec(), edbm_select_mirror_exec(), edbm_select_mode_exec(), edbm_select_more_exec(), edbm_select_non_manifold_exec(), edbm_select_ungrouped_exec(), edbm_set_normals_from_faces_exec(), edbm_sort_elements_exec(), edbm_spin_exec(), edbm_spin_poll_property(), edbm_subdivide_exec(), edbm_tris_convert_to_quads_exec(), edbm_wireframe_exec(), edge_panel_draw(), face_corner_panel_draw(), face_panel_draw(), face_select_hide_exec(), face_select_reveal_exec(), fade_panel_draw(), file_browse_exec(), file_directory_new_exec(), file_exec(), file_select_invoke(), file_walk_select_invoke(), fileselect_ensure_updated_file_params(), find_missing_files_exec(), frame_jump_exec(), generate_panel_draw(), get_boolean(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), gizmo_button2d_cursor_get(), gizmo_move_invoke(), gizmo_plane_update_cursor(), gizmo_select_invoke(), gpencil_bake_mesh_animation_exec(), gpencil_blank_frame_add_exec(), gpencil_convert_layer_exec(), gpencil_convert_old_files_exec(), gpencil_convert_poll_property(), gpencil_cutter_lasso_select(), gpencil_draw_apply_event(), gpencil_draw_exec(), gpencil_draw_invoke(), gpencil_editmode_toggle_exec(), gpencil_extract_palette_vertex_exec(), gpencil_fill_modal(), gpencil_guide_rotate(), gpencil_hide_exec(), gpencil_interpolate_seq_exec(), gpencil_interpolate_set_init_values(), gpencil_isolate_layer_exec(), gpencil_material_hide_exec(), gpencil_material_isolate_exec(), gpencil_material_select_exec(), gpencil_material_to_vertex_exec(), gpencil_merge_by_distance_exec(), gpencil_modifier_apply_exec(), gpencil_modifier_remove_exec(), gpencil_paintmode_toggle_exec(), gpencil_prepare_stroke(), gpencil_primitive_invoke(), gpencil_reveal_exec(), gpencil_sculpt_brush_apply(), gpencil_sculpt_brush_invoke(), gpencil_sculpt_brush_modal(), gpencil_sculptmode_toggle_exec(), gpencil_select_alternate_exec(), gpencil_select_exec(), gpencil_select_first_exec(), gpencil_select_last_exec(), gpencil_session_initdata(), gpencil_smooth_stroke(), gpencil_snap_to_cursor(), gpencil_stroke_cyclical_set_exec(), gpencil_stroke_join_exec(), gpencil_stroke_merge_exec(), gpencil_strokes_paste_exec(), gpencil_strokes_reproject_exec(), gpencil_trace_image_exec(), gpencil_transform_fill_modal(), gpencil_vertex_group_normalize_all_exec(), gpencil_vertexmode_toggle_exec(), gpencil_vertexpaint_brush_apply(), gpencil_vertexpaint_brush_invoke(), gpencil_vertexpaint_brush_modal(), gpencil_weightmode_toggle_exec(), gpencil_weightpaint_brush_invoke(), gpencil_weightpaint_brush_modal(), graph_driver_vars_paste_exec(), graph_fmodifier_add_exec(), graph_fmodifier_paste_exec(), graph_panel_cursor(), graphkeys_box_select_exec(), graphkeys_box_select_invoke(), graphkeys_clean_exec(), graphkeys_click_insert_exec(), graphkeys_clickselect_exec(), graphkeys_paste_description(), graphkeys_paste_exec(), graphkeys_select_leftright_exec(), graphkeys_view_selected_exec(), graphkeys_viewall_exec(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), hide_exec(), hide_metaelems_exec(), hide_tracks_exec(), image_cycle_render_slot_exec(), image_flip_exec(), image_invert_exec(), image_new_exec(), image_open_draw(), image_open_exec(), image_save_as_draw(), image_save_as_draw_check_prop(), image_sequence_get_frame_ranges(), image_to_gpencil_exec(), image_view_all(), image_view_zoom_border_exec(), image_view_zoom_invoke(), image_view_zoom_modal(), initSnapping(), initTransInfo(), insert_key_button_exec(), insert_key_exec(), insert_key_menu_invoke(), keyframe_jump_exec(), knifeproject_exec(), knifetool_invoke(), lattice_select_mirror_exec(), lattice_select_ungrouped_exec(), limits_panel_draw(), localview_exec(), make_single_user_exec(), marker_jump_exec(), mask_hide_view_clear_exec(), mask_hide_view_set_exec(), mask_select_linked_pick_invoke(), mask_shape_key_rekey_exec(), materials_panel_draw(), mesh_bisect_exec(), mesh_symmetry_snap_exec(), minimize_stretch_init(), mix_mode_panel_draw(), modifier_apply_as_shapekey_exec(), modifier_apply_as_shapekey_get_description(), modifier_apply_exec_ex(), modifier_remove_exec(), move_to_collection_exec(), move_to_collection_invoke(), multires_external_save_exec(), nla_action_unlink_exec(), nla_fmodifier_add_exec(), nla_fmodifier_paste_exec(), nla_panel_actclip(), nla_panel_animated_strip_time(), nla_panel_evaluation(), nla_panel_properties(), nlachannels_mouseclick_invoke(), nlaedit_add_tracks_exec(), nlaedit_box_select_exec(), nlaedit_box_select_invoke(), nlaedit_clickselect_exec(), nlaedit_disable_tweakmode_exec(), nlaedit_duplicate_exec(), nlaedit_enable_tweakmode_exec(), nlaedit_select_leftright_exec(), nlaedit_sync_actlen_exec(), node_box_select_invoke(), node_buts_image_user(), node_buts_image_views(), node_composit_buts_blur(), node_composit_buts_color_spill(), node_composit_buts_crop(), node_composit_buts_defocus(), node_composit_buts_file_output_ex(), node_composit_buts_lensdist(), node_composit_buts_map_value(), node_duplicate_exec(), node_file_output_socket_draw(), node_group_edit_exec(), node_lasso_select_invoke(), node_link_invoke(), node_link_modal(), node_make_link_exec(), node_mouse_select(), node_select_exec(), node_select_grouped_exec(), node_select_same_type_step_exec(), node_shader_buts_tex_sky(), node_shader_buts_uvmap(), object_add_hook_selob_exec(), object_add_named_exec(), object_add_ui(), object_clear_paths_exec(), object_clear_transform_generic_exec(), object_convert_exec(), object_delete_exec(), object_duplicates_make_real_exec(), object_gpencil_add_exec(), object_hide_collection_exec(), object_hide_view_clear_exec(), object_hide_view_set_exec(), object_mode_set_exec(), object_offset_draw(), object_select_by_type_exec(), object_select_grouped_exec(), object_select_linked_exec(), object_select_menu_exec(), object_select_mirror_exec(), object_subdivision_type(), object_transfer_mode_invoke(), object_transform_apply_exec(), occlusion_panel_draw(), ocean_bake_exec(), offset_panel_draw(), op_generic_value_invoke(), open_exec(), outliner_box_select_invoke(), outliner_delete_exec(), outliner_item_activate_invoke(), outliner_item_openclose_invoke(), outliner_item_rename(), outliner_one_level_exec(), outliner_orphans_purge_exec(), outliner_orphans_purge_invoke(), outliner_scroll_page_exec(), outliner_walk_select_invoke(), override_remove_button_exec(), override_type_set_button_exec(), pack_islands_exec(), paint_mask_extract_exec(), paint_mask_slice_exec(), paint_select_linked_pick_invoke(), paint_stroke_update_step(), paintcurve_select_point_exec(), paintcurve_select_point_invoke(), paintcurve_slide_invoke(), panel_custom_data_active_get(), panel_draw(), parent_set_exec(), path_panel_draw(), path_select_params_from_op(), point_normals_apply(), point_normals_draw_check_prop(), point_normals_update_header(), pose_armature_layers_showall_exec(), pose_clear_paths_exec(), pose_clear_user_transforms_exec(), pose_flip_names_exec(), pose_hide_exec(), pose_ik_add_exec(), pose_paste_exec(), pose_reveal_exec(), pose_select_connected_invoke(), pose_select_grouped_exec(), pose_select_hierarchy_exec(), pose_select_mirror_exec(), proj_paint_image_create(), ptcache_baker_create(), quadriflow_remesh_exec(), radial_control_get_properties(), radial_control_modal(), random_panel_draw(), refine_marker_exec(), relative_offset_draw(), remove_driver_button_exec(), reset_default_button_exec(), reveal_exec(), reveal_metaelems_exec(), ringsel_init(), rna_GPConvert_mode_items(), sample_color_exec(), sample_color_invoke(), sample_color_modal(), save_image_op(), screen_animation_cancel_exec(), screen_animation_play_exec(), screen_maximize_area_exec(), screen_opengl_render_description(), screen_opengl_render_exec(), screen_opengl_render_init(), screen_opengl_render_invoke(), screen_opengl_render_modal(), screen_render_exec(), screen_render_invoke(), screenshot_exec(), sculpt_brush_stroke_invoke(), sculpt_cloth_filter_invoke(), sculpt_dirty_mask_exec(), sculpt_expand_cache_initial_config_set(), sculpt_face_set_edit_invoke(), sculpt_gesture_context_init_common(), sculpt_gesture_init_from_line(), sculpt_gesture_init_trim_properties(), sculpt_mask_by_color_invoke(), sculpt_mask_expand_cancel(), sculpt_mask_expand_invoke(), sculpt_mask_expand_modal(), sculpt_mask_filter_exec(), sculpt_update_cache_variants(), select_exec(), select_invoke(), select_linked_pick_exec(), select_linked_pick_invoke(), select_report_pick_exec(), seq_load_apply_generic_options(), sequencer_add_draw(), sequencer_add_effect_strip_exec(), sequencer_add_image_strip_calculate_length(), sequencer_add_image_strip_exec(), sequencer_add_image_strip_load_files(), sequencer_add_mask_strip_exec(), sequencer_add_movie_multiple_strips(), sequencer_add_movie_single_strip(), sequencer_add_movie_strip_exec(), sequencer_add_movieclip_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_add_sound_strip_exec(), sequencer_box_select_exec(), sequencer_box_select_invoke(), sequencer_change_path_exec(), sequencer_enable_proxies_exec(), sequencer_gap_remove_exec(), sequencer_mute_exec(), sequencer_paste_exec(), sequencer_reload_exec(), sequencer_select_exec(), sequencer_select_grouped_exec(), sequencer_select_linked_pick_invoke(), sequencer_select_side_of_frame_exec(), sequencer_set_range_to_strips_exec(), sequencer_split_exec(), sequencer_split_invoke(), sequencer_split_ui(), sequencer_strip_jump_exec(), sequencer_unmute_exec(), set_spline_type_exec(), set_style_exec(), shaderfx_remove_exec(), shape_key_add_exec(), shape_key_mirror_exec(), shape_key_remove_exec(), slide_point_customdata(), smart_project_exec(), snap_selected_to_cursor_exec(), sound_mixdown_exec(), stencil_fit_image_aspect_exec(), stencil_reset_transform_exec(), stepped_panel_draw(), stitch_init_all(), style_panel_draw(), symmetry_panel_draw(), BlenderSync::sync_integrator(), text_open_exec(), text_paste_exec(), text_replace_exec(), text_to_3d_object_exec(), tile_add_draw(), tile_add_exec(), track_markers(), track_markers_desc(), transform_mode_init(), transparency_panel_draw(), transparency_panel_draw_header(), ui_button_press_invoke(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageFormatViews(), unwrap_exec(), uv_box_select_exec(), uv_from_view_exec(), uv_hide_exec(), uv_map_clip_correct_multi(), uv_mark_seam_exec(), uv_pin_exec(), uv_remove_doubles_exec(), uv_reveal_exec(), uv_seams_from_islands_exec(), uv_select_edge_ring_exec(), uv_select_exec(), uv_select_linked_internal(), uv_select_loop_exec(), uv_select_overlap_exec(), v3d_transform_butsR(), vert_select_ungrouped_exec(), vertex_group_clean_exec(), vertex_group_invert_exec(), vertex_group_mirror_exec(), vertex_group_normalize_all_exec(), vertex_group_remove_exec(), vertex_group_remove_from_exec(), vertex_panel_draw(), vgroup_panel_draw(), view3d_all_exec(), view3d_interactive_add_begin(), view3d_interactive_add_invoke(), view3d_pastebuffer_exec(), view3d_select_exec(), view3d_zoom_border_exec(), view_all_exec(), view_axis_exec(), view_borderzoom_exec(), view_zoom_modal(), view_zoomdrag_apply(), viewdolly_exec(), viewdolly_invoke(), viewmove_invoke(), viewrotate_invoke(), viewselected_exec(), viewzoom_exec(), viewzoom_invoke(), viewzoom_modal(), volume_import_exec(), wave_panel_draw(), wm_call_panel_exec(), WM_gesture_box_invoke(), WM_gesture_circle_invoke(), wm_homefile_read_exec(), wm_lib_relocate_exec_do(), wm_link_append_exec(), wm_link_append_flag(), wm_open_mainfile__discard_changes(), wm_open_mainfile__open(), WM_operator_confirm_or_exec(), WM_operator_drop_load_path(), wm_recover_auto_save_exec(), wm_recover_last_session_exec(), wm_revert_mainfile_exec(), wm_save_as_mainfile_exec(), wm_save_as_mainfile_get_description(), wm_save_as_mainfile_get_name(), and wpaint_stroke_update_step().
| void RNA_boolean_get_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| bool * | values | ||
| ) |
Definition at line 6284 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_boolean_get_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by armature_bone_layers_exec(), armature_layers_exec(), armature_layers_invoke(), gizmo_mesh_extrude_refresh(), panel_draw(), and pose_bone_layers_exec().
| void RNA_boolean_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| bool | value | ||
| ) |
Definition at line 6272 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_boolean_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by action_unlink_invoke(), annotation_draw_apply_event(), bone_mouse_select_menu(), brush_edit_apply_event(), change_frame_modal(), ED_operatormacros_action(), ED_operatormacros_armature(), ED_operatormacros_clip(), ED_operatormacros_curve(), ED_operatormacros_gpencil(), ED_operatormacros_graph(), ED_operatormacros_mask(), ED_operatormacros_mesh(), ED_operatormacros_metaball(), ED_operatormacros_node(), ED_operatormacros_object(), ED_operatormacros_paint(), ED_operatormacros_uvedit(), edbm_bevel_modal(), edbm_inset_modal(), edbm_select_mode_invoke(), file_directory_enter_handle(), gesture_straightline_apply(), ghost_event_proc(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup_init_properties_from_twtype(), gpencil_convert_check_has_valid_timing(), gpencil_draw_apply_event(), gpencil_sculpt_brush_apply_event(), gpencil_select_invoke(), gpencil_vertexpaint_brush_apply_event(), gpencil_weightpaint_brush_apply_event(), image_replace_invoke(), image_save_as_invoke(), insert_key_menu_invoke(), lib_relocate(), move_to_collection_menu_create(), nla_action_unlink_invoke(), node_link_invoke(), object_clear_paths_invoke(), object_mouse_select_menu(), open_invoke(), paint_brush_stroke_add_step(), panel_custom_data_active_set(), parent_set_invoke_menu(), pick_link(), pose_clear_paths_invoke(), recent_files_menu_draw(), BlenderSession::reset_session(), rigidbody_world_export_invoke(), sample_color_modal(), saveTransform(), screen_opengl_render_init(), sequencer_change_path_invoke(), sequencer_disable_one_time_properties(), set_boolean(), stitch_exit(), template_operator_property_buts_draw_single(), blender::bke::tests::test_render_pass_conflict(), tile_fill_init(), transform_from_gizmo_invoke(), ui_but_anim_decorate_cb(), UI_drop_color_copy(), ui_keymap_but_cb(), ui_popup_context_menu_for_button(), ui_tooltip_data_from_tool(), uiItemBooleanO(), uiTemplateRecentFiles(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_xform_shear_setup(), WM_gizmogroup_keymap_template_select_ex(), WM_keymap_add_panel(), wm_recover_auto_save_exec(), wm_recover_last_session_exec(), wm_test_autorun_revert_action_exec(), and WM_toolsystem_ref_set_by_id_ex().
| void RNA_boolean_set_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| const bool * | values | ||
| ) |
Definition at line 6296 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_boolean_set_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by armature_bone_layers_exec(), armature_bone_layers_invoke(), armature_layers_exec(), armature_layers_invoke(), gizmo2d_resize_setup(), gizmo2d_xform_setup(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_setup(), loopcut_init(), pose_armature_layers_showall_exec(), pose_bone_layers_exec(), and pose_bone_layers_invoke().
| void RNA_collection_add | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| PointerRNA * | r_value | ||
| ) |
Definition at line 6610 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_collection_add(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by annotation_draw_apply_event(), brush_edit_apply_event(), clip_drop_copy(), curve_draw_stroke_to_operator_elem(), gesture_lasso_apply(), gpencil_draw_apply_event(), gpencil_sculpt_brush_apply_event(), gpencil_vertexpaint_brush_apply_event(), gpencil_weightpaint_brush_apply_event(), paint_brush_stroke_add_step(), sequencer_drop_copy(), and stitch_exit().
| void RNA_collection_begin | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| CollectionPropertyIterator * | iter | ||
| ) |
Definition at line 6598 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_collection_begin(), RNA_struct_find_property(), and PointerRNA::type.
| void RNA_collection_clear | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6622 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_collection_clear(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by clip_drop_copy(), gesture_lasso_apply(), paint_brush_stroke_add_step(), sequencer_drop_copy(), stitch_exit(), and stitch_init_all().
| int RNA_collection_length | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6634 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_collection_length(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by edbm_knife_cut_exec(), node_shader_buts_vertex_color(), open_exec(), sequencer_add_image_strip_invoke(), sequencer_add_movie_strip_invoke(), and sequencer_add_sound_strip_invoke().
| PropertyRNA* rna_ensure_property | ( | PropertyRNA * | prop | ) |
Definition at line 650 of file rna_access.c.
References arraytypemap, IDP_ARRAY, PropertyRNA::magic, RNA_MAGIC, IDProperty::subtype, IDProperty::type, and typemap.
Referenced by RNA_parameter_flag(), RNA_property_animateable(), RNA_property_array_dimension(), RNA_property_array_item_index(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_builtin(), RNA_property_collection_assign_int(), RNA_property_collection_end(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string_index(), RNA_property_collection_next(), RNA_property_collection_skip(), RNA_property_collection_type_get(), RNA_property_comparable(), RNA_property_editable(), RNA_property_editable_flag(), RNA_property_editable_index(), RNA_property_editable_info(), RNA_property_enum_get_default(), RNA_property_enum_items_ex(), RNA_property_enum_items_gettexted_all(), RNA_property_flag(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_range(), RNA_property_float_ui_range(), RNA_property_int_get_default(), RNA_property_int_get_default_array(), RNA_property_int_range(), RNA_property_int_ui_range(), RNA_property_is_set(), RNA_property_is_set_ex(), RNA_property_override_flag(), RNA_property_pointer_poll(), RNA_property_pointer_type(), RNA_property_string_default_length(), RNA_property_string_get_default(), RNA_property_string_maxlength(), RNA_property_subtype(), RNA_property_tags(), RNA_property_translation_context(), RNA_property_type(), RNA_property_ui_icon(), RNA_property_unset(), and rna_property_update().
|
static |
Definition at line 433 of file rna_access.c.
References PropertyRNA::getlength, IDP_ARRAY, PropertyRNA::magic, RNA_MAGIC, PropertyRNA::totarraylength, and IDProperty::type.
Referenced by RNA_property_array_check().
|
static |
Definition at line 419 of file rna_access.c.
References PointerRNA::data, PropertyRNA::getlength, IDP_ARRAY, IDProperty::len, PropertyRNA::magic, ptr, RNA_MAGIC, RNA_MAX_ARRAY_DIMENSION, PropertyRNA::totarraylength, and IDProperty::type.
Referenced by rna_idproperty_verify_valid(), RNA_property_array_length(), RNA_property_boolean_get_default_index(), RNA_property_boolean_get_index(), RNA_property_boolean_set_index(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_get_index(), RNA_property_float_set_index(), RNA_property_int_get_default_array(), RNA_property_int_get_default_index(), RNA_property_int_get_index(), and RNA_property_int_set_index().
|
static |
Definition at line 676 of file rna_access.c.
References PropertyRNA::description, IDP_GetPropertyTypeFromGroup(), IDP_String, IDP_STRING, PropertyRNA::magic, NULL, rna_idproperty_ui(), and RNA_MAGIC.
Referenced by RNA_property_description(), RNA_property_ui_description(), and RNA_property_ui_description_raw().
|
static |
Definition at line 668 of file rna_access.c.
References PropertyRNA::identifier, PropertyRNA::magic, and RNA_MAGIC.
Referenced by RNA_property_identifier().
|
static |
Definition at line 443 of file rna_access.c.
References PropertyRNA::arraydimension, PropertyRNA::arraylength, PropertyRNA::getlength, IDP_ARRAY, IDProperty::len, length(), PropertyRNA::magic, ptr, RNA_MAGIC, and IDProperty::type.
Referenced by RNA_property_array_dimension(), and RNA_property_multi_array_length().
|
static |
Definition at line 702 of file rna_access.c.
References PropertyRNA::magic, PropertyRNA::name, and RNA_MAGIC.
Referenced by RNA_property_ui_name(), and RNA_property_ui_name_raw().
| PropertyRNA* rna_ensure_property_realdata | ( | PropertyRNA ** | prop, |
| PointerRNA * | ptr | ||
| ) |
Definition at line 638 of file rna_access.c.
References PropertyRNAOrID::idprop, PropertyRNAOrID::is_idprop, NULL, ptr, rna_property_rna_or_id_get(), and PropertyRNAOrID::rnaprop.
Referenced by RNA_property_copy().
| int RNA_enum_bitflag_identifiers | ( | const EnumPropertyItem * | item, |
| const int | value, | ||
| const char ** | r_identifier | ||
| ) |
Definition at line 1840 of file rna_access.c.
References EnumPropertyItem::identifier, NULL, and EnumPropertyItem::value.
Referenced by pyrna_enum_bitfield_to_py(), and RNA_property_enum_bitflag_identifiers().
| bool RNA_enum_description | ( | const EnumPropertyItem * | item, |
| const int | value, | ||
| const char ** | r_description | ||
| ) |
Definition at line 1864 of file rna_access.c.
References EnumPropertyItem::description, and RNA_enum_from_value().
Referenced by redraw_timer_exec().
| int RNA_enum_from_identifier | ( | const EnumPropertyItem * | item, |
| const char * | identifier | ||
| ) |
Definition at line 1876 of file rna_access.c.
References EnumPropertyItem::identifier, and STREQ.
Referenced by RNA_enum_is_equal(), RNA_enum_value_from_id(), RNA_property_enum_value(), and toolsystem_ref_link().
| int RNA_enum_from_name | ( | const EnumPropertyItem * | item, |
| const char * | name | ||
| ) |
Take care using this with translated enums, prefer RNA_enum_from_identifier where possible.
Definition at line 1891 of file rna_access.c.
References EnumPropertyItem::identifier, EnumPropertyItem::name, and STREQ.
Referenced by ui_tooltip_data_from_tool().
| int RNA_enum_from_value | ( | const EnumPropertyItem * | item, |
| const int | value | ||
| ) |
Definition at line 1902 of file rna_access.c.
References EnumPropertyItem::identifier, and EnumPropertyItem::value.
Referenced by get_texture_layer_type(), graph_fmodifier_itemf(), menu_items_from_ui_create(), nla_fmodifier_itemf(), RNA_enum_description(), RNA_enum_icon_from_value(), RNA_enum_id_from_value(), RNA_enum_identifier(), RNA_enum_name(), RNA_enum_name_from_value(), RNA_property_enum_item_from_value(), RNA_property_enum_step(), space_type_set_or_cycle_exec(), ui_but_event_property_operator_string(), ui_def_but_rna(), userpref_main_region_layout(), WM_key_event_string(), and WM_toolsystem_ref_sync_from_context().
| int RNA_enum_get | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6402 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_enum_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by action_circle_select_exec(), actkeys_box_select_exec(), actkeys_columnselect_exec(), actkeys_deselectall_exec(), actkeys_easing_exec(), actkeys_expo_exec(), actkeys_handletype_exec(), actkeys_insertkey_exec(), actkeys_ipo_exec(), actkeys_keytype_exec(), actkeys_lassoselect_exec(), actkeys_mirror_exec(), actkeys_paste_exec(), actkeys_select_leftright_exec(), actkeys_select_leftright_invoke(), actkeys_snap_exec(), add_driver_button_menu_exec(), add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cylinder_exec(), animchannels_rearrange_exec(), animchannels_selectall_exec(), animchannels_setflag_exec(), annotation_draw_init(), annotation_draw_invoke(), annotation_draw_modal(), area_split_apply(), area_split_draw_cb(), area_split_init(), area_split_preview_update_cursor(), armature_autoside_names_exec(), armature_calc_roll_exec(), armature_de_select_all_exec(), armature_parent_clear_exec(), armature_parent_set_exec(), armature_select_hierarchy_exec(), armature_select_similar_exec(), armature_symmetrize_exec(), arrow_draw_geom(), average_normals_draw_check_prop(), axis_mapping_panel_draw(), bake_init_api_data(), bone_select_menu_exec(), bookmark_move_exec(), box_select_exec(), brush_curve_preset_exec(), button2d_draw_intern(), circle_select_exec(), clean_tracks_exec(), clear_track_path_exec(), clip_lasso_select_exec(), collection_instance_add_exec(), collection_link_exec(), collection_objects_remove_exec(), console_delete_exec(), console_move_exec(), console_scrollback_append_exec(), copy_particle_systems_exec(), curve_delete_exec(), curve_draw_exec(), curve_header_draw(), curve_panel_draw(), curve_select_random_exec(), curve_select_similar_exec(), custom_range_header_draw(), custom_range_panel_draw(), data_transfer_check(), data_transfer_exec(), data_transfer_poll_property(), datalayout_transfer_exec(), de_select_all_exec(), delete_exec(), detect_features_exec(), dial_draw_intern(), dial_ghostarc_get_angles(), disable_markers_exec(), do_fill_tile(), driverdropper_sample(), dt_layers_select_dst_itemf(), dt_layers_select_src_itemf(), dt_mix_mode_itemf(), ed_marker_box_select_exec(), ed_marker_make_links_scene_exec(), ed_marker_select_all_exec(), edbm_average_normals_exec(), edbm_bevel_calc(), edbm_bevel_init(), edbm_bevel_modal(), edbm_bevel_ui(), edbm_bevel_update_status_text(), edbm_blend_from_shape_exec(), edbm_bridge_edge_loops_exec(), edbm_decimate_exec(), edbm_delete_exec(), edbm_dissolve_limited_exec(), edbm_edge_split_exec(), edbm_intersect_boolean_exec(), edbm_intersect_boolean_ui(), edbm_intersect_exec(), edbm_intersect_ui(), edbm_merge_exec(), edbm_mod_weighted_strength_exec(), edbm_normals_tools_exec(), edbm_point_normals_modal(), edbm_poke_face_exec(), edbm_quads_convert_to_tris_exec(), edbm_select_all_exec(), edbm_select_axis_exec(), edbm_select_face_by_sides_exec(), edbm_select_linked_exec(), edbm_select_linked_pick_exec(), edbm_select_linked_pick_invoke(), edbm_select_mirror_exec(), edbm_select_mode_exec(), edbm_select_random_exec(), edbm_select_similar_exec(), edbm_separate_exec(), edbm_sort_elements_exec(), edbm_sort_elements_poll_property(), edbm_subdivide_exec(), edge_data_panel_draw(), edit_constraint_property_get(), effector_add_exec(), eyedropper_gpencil_init(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_map_move_exec(), face_select_all_exec(), falloff_panel_draw(), file_box_select_exec(), file_select_all_exec(), file_walk_select_invoke(), frame_jump_exec(), geo_node_mesh_primitive_line_layout(), geo_node_point_instance_layout(), geometry_attribute_add_exec(), geometry_panel_draw(), get_bevel_offset(), get_enum(), BlenderSync::get_scene_params(), get_texture_layer_type(), gizmo_arrow_exit(), gizmo_arrow_modal(), gizmo_arrow_property_update(), gizmo_cage2d_draw_intern(), gizmo_cage2d_modal(), gizmo_cage2d_test_select(), gizmo_cage3d_draw_intern(), gizmo_cage3d_modal(), gizmo_dial_draw(), gizmo_dial_draw_select(), gizmo_plane_update_cursor(), gizmo_primitive_draw_intern(), gpencil_bake_mesh_animation_exec(), gpencil_circle_select_exec(), gpencil_convert_layer_exec(), gpencil_convert_poll_property(), gpencil_delete_exec(), gpencil_dissolve_exec(), gpencil_draw_init(), gpencil_draw_invoke(), gpencil_draw_modal(), gpencil_editcurve_set_handle_type_exec(), gpencil_frame_clean_duplicate_exec(), gpencil_frame_clean_fill_exec(), gpencil_frame_duplicate_exec(), gpencil_generate_weights_exec(), gpencil_generic_select_exec(), gpencil_interpolate_seq_easing_calc(), gpencil_interpolate_seq_exec(), gpencil_interpolate_seq_ui(), gpencil_interpolate_set_init_values(), gpencil_layer_change_exec(), gpencil_layer_copy_exec(), gpencil_layer_duplicate_object_exec(), gpencil_layer_move_exec(), gpencil_material_set_exec(), gpencil_modifier_add_exec(), gpencil_modifier_apply_exec(), gpencil_primitive_init(), gpencil_primitive_update(), gpencil_reset_transform_fill_exec(), gpencil_select_all_exec(), gpencil_select_grouped_exec(), gpencil_stroke_arrange_exec(), gpencil_stroke_caps_set_exec(), gpencil_stroke_cyclical_set_exec(), gpencil_stroke_join_exec(), gpencil_stroke_merge_exec(), gpencil_stroke_reset_vertex_color_exec(), gpencil_stroke_separate_exec(), gpencil_strokes_paste_exec(), gpencil_strokes_reproject_exec(), gpencil_trace_image_exec(), gpencil_transform_fill_invoke(), gpencil_uv_transform_calc(), gpencil_uv_transform_update_header(), gpencil_vertexpaint_brightness_contrast_exec(), gpencil_vertexpaint_hsv_exec(), gpencil_vertexpaint_invert_exec(), gpencil_vertexpaint_levels_exec(), gpencil_vertexpaint_set_exec(), graph_circle_select_exec(), graph_disable_markers_exec(), graph_fmodifier_add_exec(), graph_select_all_markers_exec(), graphkeys_box_select_exec(), graphkeys_columnselect_exec(), graphkeys_decimate_desc(), graphkeys_decimate_exec(), graphkeys_decimate_poll_property(), graphkeys_deselectall_exec(), graphkeys_easing_exec(), graphkeys_expo_exec(), graphkeys_handletype_exec(), graphkeys_insertkey_exec(), graphkeys_ipo_exec(), graphkeys_lassoselect_exec(), graphkeys_mirror_exec(), graphkeys_paste_exec(), graphkeys_select_leftright_exec(), graphkeys_select_leftright_invoke(), graphkeys_snap_exec(), group_move_exec(), hide_show_exec(), hide_show_invoke(), image_new_exec(), image_sample_apply(), image_unpack_exec(), initSnapping(), keyingset_active_menu_exec(), lattice_flip_exec(), lattice_select_all_exec(), lattice_select_mirror_exec(), lattice_select_random_exec(), light_cache_bake_tag_cache(), lightprobe_add_exec(), load_data_init_from_operator(), lock_tracks_exec(), make_links_data_exec(), make_links_scene_exec(), make_local_exec(), make_proxy_exec(), make_single_user_exec(), mask_flood_fill_exec(), mask_layer_move_exec(), mask_panel_draw(), mass_calculate_poll_property(), material_slot_move_exec(), mball_select_all_exec(), mball_select_similar_exec(), mesh_operator_edgering_props_get(), mesh_symmetrize_exec(), mesh_symmetry_snap_exec(), mode_set_exec(), modifier_add_exec(), move3d_draw_intern(), move_exec(), move_geom_draw(), move_lines_exec(), move_select_exec(), multires_subdivide_exec(), nla_fmodifier_add_exec(), nla_panel_properties(), nla_panel_stripname(), nlaedit_add_actionclip_exec(), nlaedit_box_select_exec(), nlaedit_deselectall_exec(), nlaedit_select_leftright_exec(), nlaedit_select_leftright_invoke(), nlaedit_snap_exec(), node_box_select_exec(), node_buts_image_user(), node_buts_image_views(), node_circleselect_exec(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_ex(), node_composit_buts_dilateerode(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_glare(), node_composit_buts_scale(), node_composit_buts_tonemap(), node_composit_buts_viewer_ex(), node_file_output_socket_draw(), node_group_separate_exec(), node_lasso_select_exec(), node_output_file_move_active_socket_exec(), node_select_all_exec(), node_select_grouped_exec(), node_shader_buts_ies(), node_shader_buts_map_range(), node_shader_buts_normal_map(), node_shader_buts_script(), node_shader_buts_script_ex(), node_shader_buts_tangent(), node_shader_buts_tex_image(), node_shader_buts_tex_sky(), node_shader_buts_tex_voronoi(), node_shader_buts_tex_wave(), node_shader_buts_uvmap(), node_shader_buts_vertex_color(), normals_panel_draw(), normals_tools_draw_check_prop(), ntree_socket_add_exec(), ntree_socket_move_exec(), ntree_socket_remove_exec(), object_add_exec(), object_add_ui(), object_constraint_add_exec(), object_convert_exec(), object_convert_ui(), object_empty_add_exec(), object_gpencil_add_exec(), object_hook_assign_exec(), object_hook_recenter_exec(), object_hook_remove_exec(), object_hook_reset_exec(), object_hook_select_exec(), object_light_add_exec(), object_metaball_add_exec(), object_mode_set_exec(), object_origin_set_exec(), object_select_all_exec(), object_select_by_type_exec(), object_select_grouped_exec(), object_select_linked_exec(), object_select_menu_exec(), object_select_random_exec(), object_track_clear_exec(), objects_add_active_exec(), objects_remove_active_exec(), offset_panel_draw(), outliner_action_set_exec(), outliner_animdata_operation_exec(), outliner_box_select_exec(), outliner_color_tag_set_exec(), outliner_constraint_operation_exec(), outliner_data_operation_exec(), outliner_id_itemf(), outliner_id_operation_exec(), outliner_id_remap_exec(), outliner_lib_operation_exec(), outliner_modifier_operation_exec(), outliner_object_operation_exec(), outliner_scene_operation_exec(), outliner_select_all_exec(), outliner_walk_select_invoke(), output_toggle_exec(), override_type_set_button_exec(), paint_stroke_new(), paint_weight_gradient_exec(), palette_color_move_exec(), palette_sort_exec(), panel_draw(), parent_clear_exec(), parent_set_exec(), parent_set_poll_property(), pe_select_all_exec(), point_normals_update_header(), pose_autoside_names_exec(), pose_bone_rotmode_exec(), pose_calculate_paths_exec(), pose_calculate_paths_invoke(), pose_constraint_add_exec(), pose_de_select_all_exec(), pose_propagate_exec(), pose_propagate_fcurve(), pose_select_grouped_exec(), pose_select_hierarchy_exec(), pose_slide_init(), poselib_move_exec(), poselib_rename_exec(), previews_clear_exec(), profile_panel_draw(), proj_paint_add_slot(), proj_paint_image_create(), quadriflow_check(), quadriflow_poll_property(), redraw_timer_exec(), render_shutter_curve_preset_exec(), report_select_all_exec(), restrictions_panel_draw(), rigidbody_con_add_exec(), rigidbody_object_add_exec(), rigidbody_objects_add_exec(), rigidbody_objects_calc_mass_exec(), rigidbody_objects_shape_change_exec(), ringsel_finish(), rule_add_exec(), scene_new_exec(), sculpt_brush_stroke_init(), sculpt_cloth_filter_invoke(), sculpt_cloth_filter_modal(), sculpt_color_filter_invoke(), sculpt_color_filter_modal(), sculpt_expand_cache_initial_config_set(), sculpt_expand_invoke(), sculpt_face_set_create_exec(), sculpt_face_set_edit_invoke(), sculpt_face_set_init_exec(), sculpt_face_sets_change_visibility_exec(), sculpt_gesture_init_mask_properties(), sculpt_gesture_init_trim_properties(), sculpt_mask_filter_exec(), sculpt_mask_init_exec(), sculpt_mesh_filter_invoke(), sculpt_mesh_filter_modal(), sculpt_sample_detail_size_exec(), sculpt_sample_detail_size_modal(), sculpt_set_pivot_position_exec(), sculpt_update_cache_invariants(), select_all_exec(), select_grouped_exec(), select_orientation_exec(), select_random_exec(), select_random_metaelems_exec(), select_roots_exec(), select_tips_exec(), seq_effect_add_properties_poll(), sequencer_add_effect_strip_exec(), sequencer_add_effect_strip_invoke(), sequencer_add_mask_strip_exec(), sequencer_add_movieclip_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_box_select_exec(), sequencer_change_effect_input_exec(), sequencer_change_effect_type_exec(), sequencer_de_select_all_exec(), sequencer_select_grouped_exec(), sequencer_select_handles_exec(), sequencer_select_side_exec(), sequencer_select_side_of_frame_exec(), sequencer_split_exec(), sequencer_split_invoke(), sequencer_strip_transform_clear_exec(), sequencer_strip_transform_fit_exec(), sequencer_swap_exec(), set_active_group_exec(), set_axis_exec(), set_case_exec(), set_handle_type_exec(), set_plane_exec(), set_solver_keyframe_exec(), set_spline_type_exec(), set_style_exec(), shaderfx_add_exec(), shading_panel_draw(), shape_key_move_exec(), shape_panel_draw(), similar_edge_select_exec(), similar_face_select_exec(), similar_vert_select_exec(), skin_loose_mark_clear_exec(), solver_options_panel_draw(), sound_mixdown_exec(), sound_unpack_exec(), space_context_cycle_invoke(), space_type_set_or_cycle_exec(), space_workspace_cycle_invoke(), stencil_control_invoke(), stitch_init(), stitch_init_all(), strip_modifier_add_exec(), strip_modifier_copy_exec(), strip_modifier_move_exec(), subdivisions_panel_draw(), text_comment_exec(), text_convert_whitespace_exec(), text_delete_exec(), text_move_exec(), text_move_select_exec(), text_resolve_conflict_exec(), texture_paint_camera_project_exec(), texture_paint_init(), texture_panel_draw(), texture_slot_move_exec(), time_remapping_panel_draw(), toggle_cyclic_exec(), toggle_shading_exec(), toggle_style_exec(), track_set_exec(), transform_from_gizmo_invoke(), transformops_data(), type_toggle_exec(), uiTemplateViewsFormat(), unpack_all_exec(), unpack_item_exec(), unwrap_exec(), uv_align_exec(), uv_box_select_exec(), uv_circle_select_exec(), uv_lasso_select_exec(), uv_map_transform(), uv_sculpt_stroke_init(), uv_select_all_exec(), uv_snap_cursor_exec(), uv_snap_selection_exec(), v3d_editmetaball_buts(), v3d_transform_butsR(), vert_select_all_exec(), vertex_group_clean_exec(), vertex_group_invert_exec(), vertex_group_levels_exec(), vertex_group_limit_total_exec(), vertex_group_lock_description(), vertex_group_lock_exec(), vertex_group_normalize_all_exec(), vertex_group_quantize_exec(), vertex_group_smooth_exec(), vertex_group_sort_exec(), vertex_vgroup_panel_draw(), vgroup_move_exec(), view3d_box_select_exec(), view3d_circle_select_exec(), view3d_cursor3d_invoke(), view3d_interactive_add_begin(), view3d_lasso_select_exec(), view_axis_exec(), view_layer_add_exec(), vieworbit_exec(), viewpan_invoke(), viewroll_exec(), viewroll_invoke(), vpaint_stroke_test_start(), vwpaint_update_cache_invariants(), weight_from_bones_exec(), weight_sample_group_exec(), and weightvg_ui_common().
| bool RNA_enum_icon_from_value | ( | const EnumPropertyItem * | item, |
| int | value, | ||
| int * | r_icon | ||
| ) |
Definition at line 6494 of file rna_access.c.
References EnumPropertyItem::icon, and RNA_enum_from_value().
Referenced by ui_id_brush_get_icon(), and uiTemplateIconView().
| bool RNA_enum_id_from_value | ( | const EnumPropertyItem * | item, |
| int | value, | ||
| const char ** | r_identifier | ||
| ) |
Definition at line 6484 of file rna_access.c.
References EnumPropertyItem::identifier, and RNA_enum_from_value().
Referenced by pyrna_prop_str().
| bool RNA_enum_identifier | ( | const EnumPropertyItem * | item, |
| const int | value, | ||
| const char ** | r_identifier | ||
| ) |
Definition at line 1830 of file rna_access.c.
References EnumPropertyItem::identifier, and RNA_enum_from_value().
Referenced by event_ids_from_type_and_value(), RNA_property_enum_identifier(), and socket_add_property().
| bool RNA_enum_is_equal | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| const char * | name, | ||
| const char * | enumname | ||
| ) |
Definition at line 6443 of file rna_access.c.
References C, free(), StructRNA::identifier, MEM_freeN, IDP_Chain::name, NULL, ptr, RNA_enum_from_identifier(), RNA_property_enum_get(), RNA_property_enum_items(), RNA_struct_find_property(), PointerRNA::type, and EnumPropertyItem::value.
| unsigned int RNA_enum_items_count | ( | const EnumPropertyItem * | item | ) |
Definition at line 1913 of file rna_access.c.
References EnumPropertyItem::identifier.
| bool RNA_enum_name | ( | const EnumPropertyItem * | item, |
| const int | value, | ||
| const char ** | r_name | ||
| ) |
Definition at line 1854 of file rna_access.c.
References EnumPropertyItem::name, and RNA_enum_from_value().
Referenced by node_blend_label(), node_boolean_math_label(), node_filter_label(), node_float_compare_label(), node_math_label(), node_vector_math_label(), RNA_property_enum_name(), and ui_menu_enumpropname().
| bool RNA_enum_name_from_value | ( | const EnumPropertyItem * | item, |
| int | value, | ||
| const char ** | r_name | ||
| ) |
Definition at line 6504 of file rna_access.c.
References EnumPropertyItem::name, and RNA_enum_from_value().
Referenced by attribute_data_type_string(), attribute_domain_string(), brush_generic_tool_set(), and brush_select_exec().
| void RNA_enum_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| int | value | ||
| ) |
Definition at line 6413 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_enum_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by actkeys_select_leftright_invoke(), annotation_draw_invoke(), clean_tracks_invoke(), constraint_reorder(), draw_socket_list(), ED_operatormacros_action(), ED_operatormacros_graph(), edbm_bevel_modal(), edbm_point_normals_modal(), edbm_sort_elements_exec(), edbm_subdivide_exec(), edit_constraint_invoke_properties(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_bisect_setup(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_refresh(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup2d_init(), gizmogroup_init_properties_from_twtype(), gpencil_convert_layer_exec(), gpencil_draw_invoke(), gpencil_primitive_modal(), graphkeys_select_leftright_invoke(), id_remap_fn(), idp_snap_gizmo_update_snap_elements(), insert_key_menu_invoke(), nlaedit_duplicate_invoke(), nlaedit_select_leftright_invoke(), node_composit_buts_file_output_ex(), object_camera_add_exec(), outliner_id_remap_find_tree_element(), override_type_set_button_invoke(), paint_stroke_new(), panel_draw(), parent_set_invoke_menu(), pose_calculate_paths_exec(), pose_calculate_paths_invoke(), pose_slide_toggle_axis_locks(), pose_slide_toggle_channels_mode(), poselib_rename_invoke(), rigidbody_objects_shape_change_exec(), saveTransform(), screen_area_options_invoke(), sequencer_add_image_strip_invoke(), sequencer_add_movie_strip_invoke(), sequencer_split_invoke(), set_enum(), stitch_exit(), subdivisions_panel_draw(), tool_generic_create_gizmo(), ui_tooltip_data_from_tool(), uiTemplatePalette(), unpack_menu(), unwrap_exec(), update_output_file(), view3d_id_drop_copy_with_type(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_camera_view_setup(), WIDGETGROUP_empty_image_refresh(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_refresh(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_node_corner_pin_setup(), WIDGETGROUP_node_crop_setup(), WIDGETGROUP_node_sbeam_setup(), WIDGETGROUP_node_transform_setup(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_setup(), WIDGETGROUP_xform_shear_refresh(), WIDGETGROUP_xform_shear_setup(), and WM_toolsystem_ref_set_by_id_ex().
| void RNA_enum_set_identifier | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| const char * | name, | ||
| const char * | id | ||
| ) |
Definition at line 6425 of file rna_access.c.
References C, StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_enum_set(), RNA_property_enum_value(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by id_remap_fn(), outliner_id_remap_find_tree_element(), set_enum(), and view3d_lightcache_update().
| bool RNA_enum_value_from_id | ( | const EnumPropertyItem * | item, |
| const char * | identifier, | ||
| int * | r_value | ||
| ) |
Definition at line 6474 of file rna_access.c.
References RNA_enum_from_identifier(), and EnumPropertyItem::value.
Referenced by BPy_FloatProperty(), BPy_FloatVectorProperty(), pyop_call(), pyop_poll(), pyrna_enum_value_from_id(), RNA_property_subtype(), snap_gizmo_setup(), uiItemEnumO_string(), uiItemEnumR_string_prop(), and wm_user_modal_keymap_set_items().
| void RNA_exit | ( | void | ) |
Definition at line 99 of file rna_access.c.
References BLENDER_RNA, BLI_ghash_free(), StructRNA::cont, ListBase::first, ContainerRNA::next, NULL, ContainerRNA::prophash, RNA_free(), and BlenderRNA::structs.
Referenced by BlendfileLoadingBaseTest::TearDownTestCase(), and WM_exit_ex().
Find the actual ID pointer and path from it to the given ID.
| id | ID reference to search the global owner for. | |
| [out] | r_path | Path from the real ID to the initial ID. |
Definition at line 5814 of file rna_access.c.
References BKE_idtype_get_info_from_id(), BLI_assert, ID::flag, GS, id, ID_GR, ID_NT, LIB_EMBEDDED_DATA, ID::name, NULL, and IDTypeInfo::owner_get.
Referenced by RNA_path_full_ID_py(), rna_prepend_real_ID_path(), and rna_property_override_property_real_id_owner().
| float RNA_float_get | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6355 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_float_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by actkeys_clean_exec(), add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), annotation_draw_exec(), annotation_draw_invoke(), area_split_apply(), area_split_draw_cb(), armature_roll_clear_exec(), armature_select_similar_exec(), arrow_draw_geom(), backimage_zoom_exec(), bake_init_api_data(), blender_camera_from_object(), blender_camera_sync(), BlenderSync::BlenderSync(), brush_scale_size_exec(), button2d_draw_intern(), change_frame_apply(), clamp_panel_draw(), clean_tracks_exec(), create_primitive_from_points(), create_subd_mesh(), curve_decimate_exec(), curve_draw_exec(), curve_draw_stroke_from_operator_elem(), curve_select_random_exec(), curve_select_similar_exec(), curvesurf_prim_add(), data_transfer_exec(), detect_features_exec(), dial_draw_intern(), do_set_scale(), edbm_average_normals_exec(), edbm_beautify_fill_exec(), edbm_bevel_calc(), edbm_bevel_calc_initial_length(), edbm_bevel_mouse_set_value(), edbm_bevel_numinput_set_value(), edbm_bevel_update_status_text(), edbm_blend_from_shape_exec(), edbm_bridge_edge_loops_exec(), edbm_decimate_exec(), edbm_dissolve_degenerate_exec(), edbm_dissolve_limited_exec(), edbm_do_smooth_laplacian_vertex_exec(), edbm_do_smooth_vertex_exec(), edbm_extrude_repeat_exec(), edbm_face_make_planar_exec(), edbm_inset_calc(), edbm_inset_modal(), edbm_inset_update_header(), edbm_intersect_boolean_exec(), edbm_intersect_exec(), edbm_poke_face_exec(), edbm_remove_doubles_exec(), edbm_select_axis_exec(), edbm_select_linked_flat_faces_exec(), edbm_select_random_exec(), edbm_select_sharp_edges_exec(), edbm_smooth_normals_exec(), edbm_solidify_exec(), edbm_spin_exec(), edbm_subdivide_exec(), edbm_vert_connect_nonplaner_exec(), edbm_wireframe_exec(), effector_add_exec(), DocumentExporter::exportCurrentScene(), get_bevel_offset(), get_float(), get_node_output_value(), blender::compositor::NodeOutput::getEditorValueFloat(), blender::compositor::NodeInput::getEditorValueFloat(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gizmo_arrow_test_select(), gizmo_dial_modal(), gpencil_bake_mesh_animation_exec(), gpencil_convert_layer_exec(), gpencil_convert_poll_property(), gpencil_draw_exec(), gpencil_generate_weights_exec(), gpencil_guide_event_handling(), gpencil_guide_rotate(), gpencil_interpolate_seq_easing_calc(), gpencil_interpolate_seq_exec(), gpencil_interpolate_set_init_values(), gpencil_interpolate_update(), gpencil_merge_by_distance_exec(), gpencil_sculpt_brush_apply(), gpencil_smooth_stroke(), gpencil_stroke_enter_editcurve_mode_exec(), gpencil_stroke_merge_material_exec(), gpencil_stroke_sample_exec(), gpencil_stroke_simplify_exec(), gpencil_trace_image_exec(), gpencil_uv_transform_update_header(), gpencil_vertex_group_smooth_exec(), gpencil_vertexpaint_brightness_contrast_exec(), gpencil_vertexpaint_brush_apply(), gpencil_vertexpaint_hsv_exec(), gpencil_vertexpaint_levels_exec(), gpencil_vertexpaint_set_exec(), gpencil_weightpaint_brush_apply(), graphkeys_clean_exec(), graphkeys_click_insert_exec(), graphkeys_decimate_exec(), graphview_cursor_apply(), image_to_gpencil_exec(), image_view_zoom_exec(), image_view_zoom_ratio_exec(), initTransInfo(), lattice_select_random_exec(), lightprobe_add_exec(), mask_flood_fill_exec(), mball_select_similar_exec(), mesh_bisect_exec(), mesh_operator_edgering_props_get(), mesh_symmetrize_exec(), mesh_symmetry_snap_exec(), minimize_stretch_init(), node_socket_get_float(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_convert_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_light_add_exec(), object_metaball_add_exec(), object_rand_verts_exec(), object_select_random_exec(), object_warp_verts_exec(), pack_islands_exec(), paint_mask_extract_exec(), paint_mask_slice_exec(), paint_stroke_update_step(), panel_draw(), point_normals_apply(), pose_propagate_exec(), pose_slide_init(), quadriflow_check(), quadriflow_poll_property(), redraw_timer_exec(), remove_doubles_exec(), rigidbody_objects_calc_mass_exec(), ringsel_finish(), ringsel_init(), sculpt_cloth_filter_invoke(), sculpt_cloth_filter_modal(), sculpt_color_filter_modal(), sculpt_face_set_init_exec(), sculpt_gesture_init_mask_properties(), sculpt_mask_by_color_invoke(), sculpt_mesh_filter_invoke(), sculpt_mesh_filter_modal(), sculpt_set_pivot_position_exec(), sculpt_symmetrize_exec(), sculpt_update_cache_variants(), select_random_exec(), select_random_metaelems_exec(), sequencer_view_zoom_ratio_exec(), set_goal_weight_exec(), set_radius_exec(), similar_edge_select_exec(), similar_face_select_exec(), similar_vert_select_exec(), smart_project_exec(), stitch_init_all(), BlenderSync::sync_camera(), BlenderSync::sync_recalc(), unwrap_exec(), uv_map_transform(), uv_remove_doubles_to_selected(), uv_remove_doubles_to_unselected(), vertex_color_brightness_contrast_exec(), vertex_color_hsv_exec(), vertex_color_levels_exec(), vertex_group_clean_exec(), vertex_group_fix_exec(), vertex_group_levels_exec(), vertex_group_smooth_exec(), view_zoom_exec(), view_zoom_ratio_exec(), view_zoomdrag_apply(), view_zoomstep_apply(), viewroll_exec(), vwpaint_update_cache_variants(), weight_set_exec(), and wm_gpencil_import_svg_exec().
| void RNA_float_get_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| float * | values | ||
| ) |
Definition at line 6378 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_float_get_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by add_feather_vertex_exec(), add_marker_exec(), add_reroute_exec(), add_vertex_exec(), annotation_draw_exec(), arrow_draw_geom(), brush_edit_apply(), clip_set_2d_cursor_exec(), create_primitive_from_points(), curve_draw_stroke_from_operator_elem(), cut_links_exec(), do_fill_tile(), dopesheet_select_channel_exec(), drop_color_invoke(), ED_object_add_generic_get_opts(), edbm_knife_cut_exec(), edbm_point_normals_exec(), edbm_screw_exec(), edbm_spin_exec(), get_float3(), get_float4(), get_node_output_rgba(), get_node_output_vector(), blender::compositor::NodeOutput::getEditorValueColor(), blender::compositor::NodeInput::getEditorValueColor(), blender::compositor::NodeOutput::getEditorValueVector(), blender::compositor::NodeInput::getEditorValueVector(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gizmo_cage2d_draw_intern(), gizmo_cage2d_modal(), gizmo_cage2d_test_select(), gizmo_cage3d_draw_intern(), gizmo_cage3d_modal(), gizmo_empty_image_prop_matrix_get(), gizmo_empty_image_prop_matrix_set(), gizmo_mesh_extrude_refresh(), gpencil_draw_exec(), gpencil_sculpt_brush_apply(), gpencil_uv_transform_update_header(), gpencil_vertexpaint_brush_apply(), gpencil_weightpaint_brush_apply(), grab_clone_apply(), image_new_exec(), image_view_pan_exec(), image_view_zoom_in_exec(), image_view_zoom_out_exec(), initSnapping(), initTransInfo(), mute_links_exec(), node_socket_get_color(), node_socket_get_vector(), paint_exec(), paint_stroke_exec(), paint_stroke_update_step(), pick_input_link_by_link_intersect(), proj_paint_image_create(), sculpt_color_filter_modal(), sculpt_update_cache_variants(), select_exec(), sequencer_add_effect_strip_exec(), spin_exec(), uv_rip_exec(), uv_select_edge_ring_exec(), uv_select_exec(), uv_select_linked_internal(), uv_select_loop_exec(), uv_set_2d_cursor_exec(), view_pan_exec(), view_zoom_in_exec(), view_zoom_out_exec(), vwpaint_update_cache_variants(), and WM_gesture_lasso_path_to_array().
| void RNA_float_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| float | value | ||
| ) |
Definition at line 6366 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_float_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by annotation_draw_apply_event(), apply_solution_scale_invoke(), area_split_modal(), BKE_nlameta_flush_transforms(), change_frame_invoke(), change_frame_modal(), clean_tracks_invoke(), curve_draw_stroke_to_operator_elem(), edbm_bevel_init(), edbm_bevel_mouse_set_value(), edbm_bevel_numinput_set_value(), edbm_inset_init(), edbm_inset_modal(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup_init(), gpencil_draw_apply_event(), gpencil_draw_modal(), gpencil_interpolate_modal(), gpencil_mouse_update_shift(), gpencil_sculpt_brush_apply_event(), gpencil_uv_transform_calc(), gpencil_vertexpaint_brush_apply_event(), gpencil_weightpaint_brush_apply_event(), graphkeys_click_insert_invoke(), graphview_cursor_setprops(), image_view_zoom_invoke(), image_zoom_apply(), loopcut_modal(), minimize_stretch_modal(), nlaedit_clear_scale_exec(), node_socket_set_float(), pack_islands_exec(), paint_brush_stroke_add_step(), pose_slide_modal(), pose_slide_mouse_update_percentage(), quadriflow_check(), recalcData_nla(), rigidbody_objects_calc_mass_exec(), saveTransform(), sculpt_set_pivot_position_invoke(), set_float(), set_scale_invoke(), set_solution_scale_invoke(), stitch_exit(), tool_generic_create_gizmo(), uiItemFloatO(), unwrap_exec(), view3d_interactive_add_modal(), view_zoom_apply(), view_zoom_invoke(), view_zoomdrag_invoke(), view_zoomdrag_modal(), view_zoomin_exec(), view_zoomout_exec(), and WIDGETGROUP_gizmo_refresh().
| void RNA_float_set_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| const float * | values | ||
| ) |
Definition at line 6390 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_float_set_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by add_feather_vertex_invoke(), add_marker_invoke(), add_vertex_invoke(), annotation_draw_apply_event(), brush_edit_apply_event(), clip_set_2d_cursor_invoke(), curve_draw_stroke_to_operator_elem(), dopesheet_select_channel_invoke(), ED_object_add_generic_get_opts(), gesture_lasso_apply(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_spin_init_refresh_axis_orientation(), gpencil_draw_apply_event(), gpencil_sculpt_brush_apply_event(), gpencil_uv_transform_calc(), gpencil_vertexpaint_brush_apply_event(), gpencil_weightpaint_brush_apply_event(), grab_clone_modal(), image_view_pan_invoke(), image_view_pan_modal(), image_view_zoom_in_invoke(), image_view_zoom_out_invoke(), node_link_invoke(), node_socket_set_color(), node_socket_set_vector(), paint_brush_stroke_add_step(), primitive_add_invoke(), proj_paint_default_color(), saveTransform(), select_invoke(), set_float3(), set_float4(), spin_invoke(), UI_drop_color_copy(), uv_rip_invoke(), uv_select_edge_ring_invoke(), uv_select_invoke(), uv_select_linked_internal(), uv_select_loop_invoke(), uv_set_2d_cursor_invoke(), view3d_interactive_add_modal(), view_pan_invoke(), view_pan_modal(), view_zoom_in_invoke(), view_zoom_out_invoke(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_empty_image_refresh(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_xform_cage_refresh(), and WIDGETGROUP_xform_shear_refresh().
| char* RNA_function_as_string_keywords | ( | bContext * | C, |
| FunctionRNA * | func, | ||
| const bool | as_function, | ||
| const bool | all_args, | ||
| const int | max_prop_length | ||
| ) |
Definition at line 6881 of file rna_access.c.
References C, NULL, RNA_Function, RNA_pointer_as_string_keywords_ex(), RNA_pointer_create(), RNA_struct_find_property(), RNA_struct_iterator_property(), and PointerRNA::type.
Referenced by pyrna_func_doc_get().
| int RNA_function_call | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| FunctionRNA * | func, | ||
| ParameterList * | parms | ||
| ) |
Definition at line 7546 of file rna_access.c.
References C, FunctionRNA::call, and ptr.
Referenced by pyrna_func_call(), RNA_function_call_direct_va(), RNA_function_call_lookup(), RNA_property_collection_add(), and RNA_property_collection_remove().
| int RNA_function_call_direct | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| FunctionRNA * | func, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 7575 of file rna_access.c.
References C, ptr, ret, and RNA_function_call_direct_va().
| int RNA_function_call_direct_lookup | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| const char * | identifier, | ||
| const char * | format, | ||
| ... | |||
| ) |
Definition at line 7590 of file rna_access.c.
References C, ptr, ret, RNA_function_call_direct_va(), RNA_struct_find_function(), and PointerRNA::type.
| int RNA_function_call_direct_va | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| FunctionRNA * | func, | ||
| const char * | format, | ||
| va_list | args | ||
| ) |
Definition at line 7812 of file rna_access.c.
References C, FunctionRNA::c_ret, ParameterIterator::data, err, PropertyRNA::flag_parameter, len, NULL, ParameterIterator::parm, PARM_OUTPUT, PARM_REQUIRED, PROP_BOOLEAN, PROP_COLLECTION, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ptr, RNA_Function, RNA_function_call(), rna_function_format_array_length(), RNA_function_identifier(), rna_function_parameter_parse(), RNA_parameter_flag(), RNA_parameter_list_begin(), RNA_parameter_list_create(), RNA_parameter_list_end(), RNA_parameter_list_free(), RNA_parameter_list_next(), RNA_pointer_create(), RNA_property_array_length(), RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), type, PointerRNA::type, and ParameterIterator::valid.
Referenced by RNA_function_call_direct(), RNA_function_call_direct_lookup(), and RNA_function_call_direct_va_lookup().
| int RNA_function_call_direct_va_lookup | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| const char * | identifier, | ||
| const char * | format, | ||
| va_list | args | ||
| ) |
Definition at line 8006 of file rna_access.c.
References C, ptr, RNA_function_call_direct_va(), RNA_struct_find_function(), and PointerRNA::type.
| int RNA_function_call_lookup | ( | bContext * | C, |
| ReportList * | reports, | ||
| PointerRNA * | ptr, | ||
| const char * | identifier, | ||
| ParameterList * | parms | ||
| ) |
Definition at line 7558 of file rna_access.c.
References C, ptr, RNA_function_call(), RNA_struct_find_function(), and PointerRNA::type.
| int RNA_function_defined | ( | FunctionRNA * | func | ) |
Definition at line 7169 of file rna_access.c.
References FunctionRNA::call, and NULL.
Referenced by pyrna_dir_members_rna(), and pyrna_struct_getattro().
| const ListBase* RNA_function_defined_parameters | ( | FunctionRNA * | func | ) |
Definition at line 7195 of file rna_access.c.
References FunctionRNA::cont, and ContainerRNA::properties.
Referenced by rna_function_arg_count().
| PropertyRNA* RNA_function_find_parameter | ( | PointerRNA * | UNUSEDptr, |
| FunctionRNA * | func, | ||
| const char * | identifier | ||
| ) |
Definition at line 7179 of file rna_access.c.
References FunctionRNA::cont, ListBase::first, PropertyRNA::next, ContainerRNA::properties, RNA_property_identifier(), and STREQ.
| int RNA_function_flag | ( | FunctionRNA * | func | ) |
Definition at line 7164 of file rna_access.c.
References FunctionRNA::flag.
Referenced by bpy_class_call(), bpy_class_validate_recursive(), pyrna_subtype_set_rna(), and rna_function_arg_count().
|
static |
Definition at line 7617 of file rna_access.c.
Referenced by RNA_function_call_direct_va().
| PropertyRNA* RNA_function_get_parameter | ( | PointerRNA * | UNUSEDptr, |
| FunctionRNA * | func, | ||
| int | index | ||
| ) |
Definition at line 7174 of file rna_access.c.
References BLI_findlink(), FunctionRNA::cont, IDP_Chain::index, and ContainerRNA::properties.
| const char* RNA_function_identifier | ( | FunctionRNA * | func | ) |
Definition at line 7149 of file rna_access.c.
References FunctionRNA::identifier.
Referenced by bpy_class_call(), bpy_class_validate_recursive(), pyrna_dir_members_rna(), pyrna_func_call(), pyrna_func_doc_get(), pyrna_func_repr(), pyrna_subtype_set_rna(), RNA_function_call_direct_va(), and RNA_struct_find_function().
|
static |
Definition at line 7637 of file rna_access.c.
References BLI_addtail(), ListBase::first, PropertyRNA::flag_parameter, len, MEM_callocN, Link::next, NULL, PARM_RNAPTR, PROP_BOOLEAN, PROP_COLLECTION, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, CollectionPointerLink::ptr, ptr, RNA_pointer_create(), RNA_property_pointer_type(), RNA_struct_identifier(), RNA_struct_is_a(), and type.
Referenced by RNA_function_call_direct_va().
| const char* RNA_function_ui_description | ( | FunctionRNA * | func | ) |
Definition at line 7154 of file rna_access.c.
References FunctionRNA::description, and TIP_.
Referenced by pyrna_func_doc_get().
| const char* RNA_function_ui_description_raw | ( | FunctionRNA * | func | ) |
Definition at line 7159 of file rna_access.c.
References FunctionRNA::description.
| void RNA_id_pointer_create | ( | ID * | id, |
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 122 of file rna_access.c.
References PointerRNA::data, id, NULL, PointerRNA::owner_id, StructRNA::refine, rna_ID_refine(), type, and PointerRNA::type.
Referenced by acf_generic_idblock_name_prop(), acf_generic_idfill_name_prop(), acf_object_name_prop(), achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), actedit_change_action(), action_get_item_transforms(), action_new_exec(), ANIM_add_driver(), ANIM_add_driver_with_target(), ANIM_apply_keyingset(), ANIM_channel_draw_widgets(), ANIM_copy_driver(), ANIM_list_elem_update(), ANIM_paste_driver(), ANIM_relative_keyingset_add_source(), ANIM_unit_mapping_get_factor(), armature_layers_exec(), armature_layers_invoke(), bake_func(), BKE_animsys_eval_driver(), BKE_animsys_evaluate_animdata(), BKE_callback_exec_id(), BKE_callback_exec_id_depsgraph(), BKE_lib_override_library_operations_create(), BKE_lib_override_library_operations_store_start(), BKE_lib_override_library_resync(), BKE_lib_override_library_status_check_local(), BKE_lib_override_library_status_check_reference(), BKE_lib_override_library_update(), BKE_pose_apply_action(), bpy_lib_exit(), blender::deg::DepsgraphRelationBuilder::build_animdata_curves_targets(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphNodeBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_relations(), buttons_context_path(), buttons_context_path_brush(), buttons_context_path_collection(), buttons_context_path_data(), buttons_context_path_linestyle(), buttons_context_path_material(), buttons_context_path_object(), buttons_context_path_texture(), buttons_context_path_world(), buttons_id_remap(), cachefile_open_exec(), UnitConverter::calculate_scale(), check_rna_path_is_valid(), clean_fcurve(), clear_keyframe(), copy_to_selected_button(), CTX_data_id_list_add(), CTX_data_id_pointer_set(), datadropper_id_sample_pt(), datadropper_id_set(), debug_flags_update_func(), DEG_get_evaluated_rna_pointer(), delete_keyframe(), denoise_func(), draw_socket_list(), driver_get_variable_property(), drw_uniform_property_lookup(), dtar_get_prop_val(), ED_annotation_data_get_pointers_direct(), ED_gpencil_data_get_pointers_direct(), edbm_blend_from_shape_ui(), blender::ed::outliner::TreeElementOverridesBase::expand(), DocumentExporter::exportCurrentScene(), DocumentImporter::finish(), font_open_exec(), font_unlink_exec(), getname_anim_fcurve(), gizmo_xform_message_subscribe(), gpencil_stroke_path_animation(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__singleProp(), graph_panel_key_properties(), graph_region_message_subscribe(), id_search_allows_id(), id_single_user(), image_new_exec(), image_open_exec(), blender::deg::AnimationBackup::init_from_id(), blender::deg::AnimatedPropertyStorage::initializeFromID(), insert_keyframe(), new_material_exec(), new_node_tree_exec(), new_texture_exec(), new_world_exec(), nla_main_region_message_subscribe(), nla_panel_animdata(), node_shader_buts_tex_pointdensity(), ntree_socket_add_exec(), open_exec(), outliner_base_or_object_pointer_create(), outliner_collection_isolate_flag(), outliner_draw_restrictbuts(), outliner_layer_or_collection_pointer_create(), outliner_object_set_flag_recursive_fn(), outliner_restrict_properties_collection_set(), outliner_set_properties_tab(), override_remove_button_exec(), panel_draw(), pastebuf_match_path_property(), pose_armature_layers_showall_exec(), pose_propagate_get_refVal(), poselib_preview_init_data(), pyrna_id_CreatePyObject(), pyrna_param_to_py(), pyrna_struct_get_id_data(), blender::deg::AnimationBackup::restore_to_id(), rna_path_from_ID_to_idpgroup(), RNA_path_from_ID_to_struct(), RNA_path_resolve_from_type_to_property(), RNA_pointer_recast(), RNA_property_path_from_ID_check(), blender::deg::RNAPathKey::RNAPathKey(), saction_main_region_message_subscribe(), sequencer_main_region_message_subscribe(), singleuser_world_fn(), BlenderSync::sync_recalc(), template_id_cb(), template_ID_set_property_exec_fn(), text_new_exec(), text_open_exec(), toggle_pin_exec(), UI_context_copy_to_selected_list(), ui_do_but_COLOR(), UI_icon_from_id(), ui_selectcontext_begin(), v3d_object_dimension_buts(), view3d_panel_transform(), what_does_obaction(), WIDGETGROUP_camera_message_subscribe(), WM_msg_publish_ID(), wm_msg_rna_update_by_id(), and WM_msg_subscribe_ID().
|
static |
Definition at line 5684 of file rna_access.c.
References BLI_assert, IDProperty::data, ELEM, ListBase::first, PropertyRNA::flag, IDPropertyData::group, IDP_GROUP, IDP_IDPArray, IDP_IDPARRAY, IDP_Chain::index, IDProperty::len, IDProperty::name, IDP_Chain::name, IDProperty::next, NULL, PROP_COLLECTION, PROP_IDPROPERTY, PROP_POINTER, ptr, rna_idp_path_create(), RNA_pointer_is_null(), RNA_property_collection_lookup_int(), RNA_property_pointer_get(), RNA_struct_find_property(), IDProperty::type, PropertyRNA::type, and IDP_Chain::up.
Referenced by RNA_path_from_struct_to_idproperty().
|
static |
Definition at line 5641 of file rna_access.c.
References BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), IDP_Chain::index, MEM_freeN, IDP_Chain::name, NULL, and IDP_Chain::up.
Referenced by rna_idp_path().
| IDProperty* rna_idproperty_check | ( | PropertyRNA ** | prop, |
| PointerRNA * | ptr | ||
| ) |
Definition at line 626 of file rna_access.c.
References PropertyRNAOrID::idprop, ptr, rna_property_rna_or_id_get(), and PropertyRNAOrID::rnaprop.
Referenced by RNA_pointer_as_string(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_collection_add(), RNA_property_collection_begin(), RNA_property_collection_clear(), RNA_property_collection_length(), RNA_property_collection_move(), RNA_property_collection_remove(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_pointer_add(), RNA_property_pointer_get(), RNA_property_pointer_poll(), RNA_property_pointer_remove(), RNA_property_pointer_set(), RNA_property_string_get(), RNA_property_string_length(), RNA_property_string_set(), and RNA_property_string_set_bytes().
| IDProperty* rna_idproperty_find | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 388 of file rna_access.c.
References IDP_GetPropertyFromGroup(), IDP_GROUP, NULL, ptr, RNA_struct_idprops(), and IDProperty::type.
Referenced by RNA_property_is_set(), RNA_property_is_set_ex(), and rna_property_rna_or_id_get().
|
static |
Definition at line 407 of file rna_access.c.
References IDP_FreeFromGroup(), IDP_GetPropertyFromGroup(), ptr, and RNA_struct_idprops().
Referenced by RNA_property_unset().
| void rna_idproperty_touch | ( | IDProperty * | idprop | ) |
Definition at line 242 of file rna_access.c.
References IDProperty::flag, and IDP_FLAG_GHOST.
Referenced by RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_collection_add(), RNA_property_collection_clear(), RNA_property_copy(), RNA_property_enum_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_pointer_set(), RNA_property_string_set(), and RNA_property_string_set_bytes().
|
static |
Definition at line 270 of file rna_access.c.
References IDP_GetPropertyTypeFromGroup(), IDP_GROUP, NULL, and rna_idproperty_ui_container().
Referenced by rna_ensure_property_description(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_range(), RNA_property_float_ui_range(), RNA_property_int_get_default(), RNA_property_int_get_default_array(), RNA_property_int_range(), RNA_property_int_ui_range(), RNA_property_string_default_length(), RNA_property_string_get_default(), and RNA_property_subtype().
|
static |
Definition at line 248 of file rna_access.c.
References IDProperty::name, IDProperty::next, next, NULL, IDProperty::prev, RNA_IDP_UI, and STREQ.
Referenced by rna_idproperty_ui(), and rna_idproperty_ui_ensure().
|
static |
Definition at line 282 of file rna_access.c.
References BLI_findindex(), IDProperty::data, IDPropertyData::group, IDP_AddToGroup(), IDP_FreePropertyContent(), IDP_GetPropertyTypeFromGroup(), IDP_GROUP, IDP_New(), NULL, ptr, RNA_IDP_UI, rna_idproperty_ui_container(), and RNA_struct_idprops().
Referenced by rna_idproperty_ui_set_default().
|
static |
Definition at line 320 of file rna_access.c.
References BLI_assert, IDPropertyTemplate::d, ELEM, IDPropertyTemplate::i, IDP_AddToGroup(), IDP_Double, IDP_DOUBLE, IDP_FreePropertyContent(), IDP_GetPropertyTypeFromGroup(), IDP_Int, IDP_INT, IDP_New(), IDP_RemoveFromGroup(), PropertyRNA::magic, NULL, ptr, rna_idproperty_ui_ensure(), RNA_MAGIC, and type.
Referenced by RNA_property_float_set_default(), and RNA_property_int_set_default().
|
static |
Definition at line 467 of file rna_access.c.
References ELEM, IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_ID, IDP_IDPARRAY, IDP_INT, IDP_STRING, IDProperty::len, PROP_BOOLEAN, PROP_COLLECTION, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ptr, rna_ensure_property_array_length(), IDProperty::subtype, IDProperty::type, and PropertyRNA::type.
Referenced by rna_property_rna_or_id_get().
| void RNA_init | ( | void | ) |
Definition at line 75 of file rna_access.c.
References BLENDER_RNA, BLI_assert, BLI_ghash_insert(), BLI_ghash_str_new(), BLI_ghash_str_new_ex(), StructRNA::cont, ListBase::first, StructRNA::flag, PropertyRNA::flag_internal, PropertyRNA::identifier, StructRNA::identifier, ContainerRNA::next, PropertyRNA::next, PROP_INTERN_BUILTIN, ContainerRNA::properties, ContainerRNA::prophash, STRUCT_PUBLIC_NAMESPACE, BlenderRNA::structs, BlenderRNA::structs_len, and BlenderRNA::structs_map.
Referenced by main(), and BlendfileLoadingBaseTest::SetUpTestCase().
| int RNA_int_get | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6308 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_int_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by action_circle_select_exec(), actionzone_apply(), actkeys_clickselect_exec(), add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_uvsphere_exec(), advanced_panel_draw(), annotation_draw_invoke(), area_move_apply(), area_move_init(), area_move_modal(), armature_subdivide_exec(), background_image_remove_exec(), bake_init_api_data(), BlenderSync::BlenderSync(), change_character_exec(), change_frame_apply(), change_spacing_exec(), circle_select_exec(), clean_tracks_exec(), console_history_append_exec(), constraint_move_to_index_exec(), detect_features_exec(), do_fill_tile(), ED_imbuf_sample_invoke(), ed_marker_move_apply(), ed_marker_move_modal(), ed_marker_move_update_header(), ed_marker_select_exec(), ED_view3d_gizmo_mesh_preselect_get_active(), edbm_average_normals_exec(), edbm_bevel_calc(), edbm_bevel_init(), edbm_bevel_update_status_text(), edbm_bridge_edge_loops_exec(), edbm_do_smooth_laplacian_vertex_exec(), edbm_do_smooth_vertex_exec(), edbm_extrude_repeat_exec(), edbm_face_make_planar_exec(), edbm_fill_holes_exec(), edbm_knife_cut_exec(), edbm_screw_exec(), edbm_select_face_by_sides_exec(), edbm_select_linked_pick_exec(), edbm_shortest_path_pick_exec(), edbm_sort_elements_exec(), edbm_spin_exec(), edbm_subdivide_exec(), edbm_unsubdivide_exec(), file_filenum_exec(), followpath_path_animate_exec(), frame_offset_exec(), get_int(), get_operator_state(), BlenderSync::get_scene_params(), gpencil_bake_mesh_animation_exec(), gpencil_bake_set_frame_end(), gpencil_circle_select_exec(), gpencil_convert_layer_exec(), gpencil_convert_set_end_frame(), gpencil_extract_palette_vertex_exec(), gpencil_frame_clean_loose_exec(), gpencil_interpolate_seq_exec(), gpencil_interpolate_set_init_values(), gpencil_layer_active_exec(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_move_to_index_exec(), gpencil_move_to_layer_exec(), gpencil_primitive_init(), gpencil_primitive_update(), gpencil_select_vertex_color_exec(), gpencil_selectmode_toggle_exec(), gpencil_smooth_stroke(), gpencil_stroke_simplify_fixed_exec(), gpencil_stroke_subdivide_exec(), gpencil_trace_image_exec(), gpencil_vertex_group_smooth_exec(), graph_circle_select_exec(), graphkeys_clickselect_exec(), image_new_exec(), image_sample_line_exec(), light_cache_bake_invoke(), load_data_init_from_operator(), loopcut_init(), mesh_bisect_interactive_calc(), mesh_operator_edgering_props_get(), minimize_stretch_exec(), minimize_stretch_init(), modifier_move_to_index_exec(), nlachannels_pushdown_exec(), nlaedit_clickselect_exec(), node_circleselect_exec(), node_composit_buts_file_output_ex(), node_select_exec(), object_add_drop_xy_get(), object_calculate_paths_exec(), object_convert_exec(), object_hide_collection_exec(), object_hide_collection_invoke(), object_rand_verts_exec(), outliner_orphans_purge_exec(), paint_mask_extract_exec(), paint_weight_gradient_exec(), palette_extract_img_exec(), panel_draw(), pose_calculate_paths_exec(), pose_group_assign_exec(), pose_slide_init(), poselib_add_exec(), poselib_preview_init_data(), preferences_asset_library_remove_exec(), preferences_autoexec_remove_exec(), proj_paint_image_create(), quadriflow_remesh_exec(), rect_from_props(), redraw_timer_exec(), rekey_exec(), repeat_history_exec(), ringcut_invoke(), ringsel_finish(), ringsel_init(), screen_set_exec(), sculpt_expand_cache_initial_config_set(), sculpt_gesture_init_from_line(), sculpt_mask_expand_invoke(), sculpt_mask_expand_modal(), sculpt_mask_filter_exec(), sculpt_mesh_filter_invoke(), select_report_pick_exec(), sequencer_gap_insert_exec(), sequencer_select_exec(), sequencer_separate_images_exec(), sequencer_slip_exec(), sequencer_snap_exec(), sequencer_split_exec(), shaderfx_move_to_index_exec(), sound_mixdown_exec(), stitch_init_all(), subdivide_exec(), BlenderSync::sync_recalc(), text_cursor_set_exec(), text_jump_exec(), text_scroll_exec(), textbox_remove_exec(), tile_add_exec(), UI_icon_from_rnaptr(), unpack_item_exec(), uv_circle_select_exec(), uv_shortest_path_pick_exec(), vertex_group_limit_total_exec(), vertex_group_quantize_exec(), vertex_group_smooth_exec(), vertex_weight_delete_exec(), vertex_weight_paste_exec(), vertex_weight_set_active_exec(), view3d_circle_select_exec(), view_edge_pan_modal(), view_pan_apply(), viewdolly_exec(), viewzoom_exec(), wm_debug_menu_exec(), WM_generic_select_modal(), WM_gesture_circle_invoke(), wm_gpencil_import_svg_exec(), WM_operator_properties_border_to_rcti(), and WM_operator_properties_checker_interval_from_op().
| void RNA_int_get_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| int * | values | ||
| ) |
Definition at line 6331 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_int_get_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by area_join_init(), area_swap_exec(), gpencil_select_exec(), paintcurve_add_point_exec(), paintcurve_select_point_exec(), sample_color_exec(), sculpt_sample_detail_size_exec(), select_linked_pick_exec(), stitch_init_all(), and view3d_select_exec().
| void RNA_int_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| int | value | ||
| ) |
Definition at line 6319 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_int_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by ANIM_channel_draw_widgets(), area_move_cancel(), area_move_invoke(), area_move_modal(), change_frame_invoke(), change_frame_modal(), clean_tracks_invoke(), constraint_reorder(), ed_marker_move_cancel(), ed_marker_move_invoke(), ed_marker_move_modal(), edbm_bevel_modal(), edbm_bevel_mouse_set_value(), edbm_bevel_numinput_set_value(), edbm_select_linked_pick_invoke(), edbm_shortest_path_pick_invoke(), file_panel_execution_buttons_draw(), file_smoothscroll_invoke(), gesture_box_apply_rect(), gesture_circle_apply(), gesture_straightline_apply(), gizmo_preselect_edgering_test_select(), gizmo_preselect_elem_test_select(), gpencil_bake_set_frame_end(), gpencil_convert_set_end_frame(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_reorder(), gpencil_primitive_init(), gpencil_primitive_modal(), gpencil_shaderfx_ops_extra_draw(), loopcut_finish(), loopcut_modal(), minimize_stretch_iteration(), modifier_ops_extra_draw(), modifier_reorder(), move_to_collection_menu_create(), object_add_drop_xy_generic_invoke(), object_calculate_paths_invoke(), object_instance_add_invoke(), outliner_item_drag_drop_invoke(), outliner_orphans_purge_invoke(), pose_calculate_paths_invoke(), pose_groups_menu_invoke(), pose_slide_invoke_common(), poselib_add_menu_invoke__replacemenu(), poselib_preview_apply(), quadriflow_check(), ringcut_invoke(), select_report_pick_invoke(), sequencer_generic_invoke_xy__internal(), sequencer_slip_modal(), sequencer_snap_invoke(), sequencer_split_invoke(), set_int(), set_next_operator_state(), shaderfx_reorder(), stitch_exit(), template_ID(), text_cursor_set_invoke(), tile_add_invoke(), tile_fill_init(), uiItemIntO(), uv_shortest_path_pick_invoke(), view3d_lightcache_update(), view3d_panel_vgroup(), view_pan_invoke(), view_pan_modal(), view_scrolldown_exec(), view_scrollleft_exec(), view_scrollright_exec(), view_scrollup_exec(), viewdolly_invoke(), viewzoom_invoke(), wm_debug_menu_invoke(), WM_generic_select_invoke(), and WM_gesture_circle_modal().
| void RNA_int_set_array | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| const int * | values | ||
| ) |
Definition at line 6343 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_int_set_array(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by gpencil_select_invoke(), paintcurve_add_point_invoke(), paintcurve_select_point_invoke(), sample_color_invoke(), sample_color_modal(), screen_area_options_invoke(), sculpt_sample_detail_size_modal(), select_linked_pick_invoke(), stitch_exit(), and view3d_select_invoke().
| void rna_iterator_array_begin | ( | CollectionPropertyIterator * | iter, |
| void * | ptr, | ||
| int | itemsize, | ||
| int | length, | ||
| bool | free_ptr, | ||
| IteratorSkipFunc | skip | ||
| ) |
Definition at line 4875 of file rna_access.c.
References CollectionPropertyIterator::array, CollectionPropertyIterator::internal, length(), NULL, ArrayIterator::ptr, CollectionPropertyIterator::ptr, ptr, rna_iterator_array_next(), and CollectionPropertyIterator::valid.
Referenced by RNA_property_collection_begin().
| void* rna_iterator_array_dereference_get | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4930 of file rna_access.c.
References CollectionPropertyIterator::array, and CollectionPropertyIterator::internal.
| void rna_iterator_array_end | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4938 of file rna_access.c.
References CollectionPropertyIterator::array, CollectionPropertyIterator::internal, MEM_freeN, and NULL.
Referenced by RNA_property_collection_end().
| void* rna_iterator_array_get | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4923 of file rna_access.c.
References CollectionPropertyIterator::array, CollectionPropertyIterator::internal, and ArrayIterator::ptr.
Referenced by rna_property_collection_get_idp().
| void rna_iterator_array_next | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4907 of file rna_access.c.
References CollectionPropertyIterator::array, CollectionPropertyIterator::internal, ArrayIterator::ptr, CollectionPropertyIterator::ptr, and CollectionPropertyIterator::valid.
Referenced by rna_iterator_array_begin(), and RNA_property_collection_next().
| void rna_iterator_listbase_begin | ( | CollectionPropertyIterator * | iter, |
| ListBase * | lb, | ||
| IteratorSkipFunc | skip | ||
| ) |
Definition at line 4823 of file rna_access.c.
References ListBase::first, CollectionPropertyIterator::internal, ListBaseIterator::link, CollectionPropertyIterator::listbase, NULL, rna_iterator_listbase_next(), and CollectionPropertyIterator::valid.
| void rna_iterator_listbase_end | ( | CollectionPropertyIterator * | UNUSEDiter | ) |
Definition at line 4862 of file rna_access.c.
| void* rna_iterator_listbase_get | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4855 of file rna_access.c.
References CollectionPropertyIterator::internal, ListBaseIterator::link, and CollectionPropertyIterator::listbase.
| void rna_iterator_listbase_next | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 4839 of file rna_access.c.
References CollectionPropertyIterator::internal, ListBaseIterator::link, CollectionPropertyIterator::listbase, Link::next, NULL, and CollectionPropertyIterator::valid.
Referenced by rna_iterator_listbase_begin().
| PointerRNA rna_listbase_lookup_int | ( | PointerRNA * | ptr, |
| StructRNA * | type, | ||
| struct ListBase * | lb, | ||
| int | index | ||
| ) |
Definition at line 4866 of file rna_access.c.
References BLI_findlink(), data, ptr, rna_pointer_inherit_refine(), and type.
| void RNA_main_pointer_create | ( | struct Main * | main, |
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 115 of file rna_access.c.
References PointerRNA::data, main(), NULL, PointerRNA::owner_id, RNA_BlendData, and PointerRNA::type.
Referenced by BPY_rna_module(), BPY_update_rna_module(), blender::ed::outliner::TreeDisplayDataAPI::buildTree(), create_func(), panel_draw(), reset_func(), and search_id_collection().
| int RNA_parameter_dynamic_length_get | ( | ParameterList * | parms, |
| PropertyRNA * | parm | ||
| ) |
Definition at line 7485 of file rna_access.c.
References ParameterIterator::data, len, ParameterIterator::parm, RNA_parameter_dynamic_length_get_data(), RNA_parameter_list_begin(), RNA_parameter_list_end(), RNA_parameter_list_next(), and ParameterIterator::valid.
| int RNA_parameter_dynamic_length_get_data | ( | ParameterList * | UNUSEDparms, |
| PropertyRNA * | parm, | ||
| void * | data | ||
| ) |
Definition at line 7526 of file rna_access.c.
References data, PropertyRNA::flag, and PROP_DYNAMIC.
Referenced by RNA_parameter_dynamic_length_get().
| void RNA_parameter_dynamic_length_set | ( | ParameterList * | parms, |
| PropertyRNA * | parm, | ||
| int | length | ||
| ) |
Definition at line 7507 of file rna_access.c.
References ParameterIterator::data, length(), ParameterIterator::parm, RNA_parameter_dynamic_length_set_data(), RNA_parameter_list_begin(), RNA_parameter_list_end(), RNA_parameter_list_next(), and ParameterIterator::valid.
| void RNA_parameter_dynamic_length_set_data | ( | ParameterList * | UNUSEDparms, |
| PropertyRNA * | parm, | ||
| void * | data, | ||
| int | length | ||
| ) |
Definition at line 7536 of file rna_access.c.
References data, PropertyRNA::flag, length(), and PROP_DYNAMIC.
Referenced by RNA_parameter_dynamic_length_set().
| int RNA_parameter_flag | ( | PropertyRNA * | prop | ) |
Definition at line 7202 of file rna_access.c.
References PropertyRNA::flag_parameter, and rna_ensure_property().
Referenced by bpy_class_call(), pyrna_func_call(), pyrna_param_to_py(), pyrna_py_to_prop(), rna_function_arg_count(), RNA_function_call_direct_va(), and RNA_pointer_as_string_keywords_ex().
| void RNA_parameter_get | ( | ParameterList * | parms, |
| PropertyRNA * | parm, | ||
| void ** | value | ||
| ) |
Definition at line 7378 of file rna_access.c.
References ParameterDynAlloc::array, ParameterIterator::data, PropertyRNA::flag, NULL, ParameterIterator::parm, PROP_DYNAMIC, RNA_parameter_list_begin(), RNA_parameter_list_end(), RNA_parameter_list_next(), and ParameterIterator::valid.
Referenced by RNA_parameter_get_lookup().
| void RNA_parameter_get_lookup | ( | ParameterList * | parms, |
| const char * | identifier, | ||
| void ** | value | ||
| ) |
Definition at line 7407 of file rna_access.c.
References FunctionRNA::cont, ListBase::first, ParameterList::func, PropertyRNA::next, ContainerRNA::properties, RNA_parameter_get(), RNA_property_identifier(), and STREQ.
| int RNA_parameter_list_arg_count | ( | ParameterList * | parms | ) |
Definition at line 7335 of file rna_access.c.
References ParameterList::arg_count.
Referenced by pyrna_func_call().
| void RNA_parameter_list_begin | ( | ParameterList * | parms, |
| ParameterIterator * | iter | ||
| ) |
Definition at line 7345 of file rna_access.c.
References FunctionRNA::cont, ParameterList::data, ParameterIterator::data, ListBase::first, ParameterList::func, NULL, ParameterIterator::offset, ParameterIterator::parm, ParameterIterator::parms, ContainerRNA::properties, rna_parameter_size(), ParameterIterator::size, and ParameterIterator::valid.
Referenced by bpy_class_call(), pyrna_func_call(), RNA_function_call_direct_va(), RNA_parameter_dynamic_length_get(), RNA_parameter_dynamic_length_set(), RNA_parameter_get(), and RNA_parameter_set().
| ParameterList* RNA_parameter_list_create | ( | ParameterList * | parms, |
| PointerRNA * | UNUSEDptr, | ||
| FunctionRNA * | func | ||
| ) |
Definition at line 7207 of file rna_access.c.
References ParameterList::alloc_size, ParameterList::arg_count, ParameterDynAlloc::array, ParameterDynAlloc::array_tot, PropertyRNA::arraydimension, BLI_strncpy(), FunctionRNA::cont, data, ParameterList::data, ListBase::first, PropertyRNA::flag, PropertyRNA::flag_parameter, ParameterList::func, MEM_callocN, PropertyRNA::next, NULL, PARM_OUTPUT, PARM_REQUIRED, PointerRNA_NULL, PROP_BOOLEAN, PROP_COLLECTION, PROP_DYNAMIC, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ContainerRNA::properties, ParameterList::ret_count, rna_parameter_size(), rna_property_boolean_get_default_array_values(), rna_property_float_get_default_array_values(), rna_property_int_get_default_array_values(), size(), and PropertyRNA::type.
Referenced by pyrna_func_call(), RNA_function_call_direct_va(), RNA_property_collection_add(), and RNA_property_collection_remove().
| void RNA_parameter_list_end | ( | ParameterIterator * | UNUSEDiter | ) |
Definition at line 7373 of file rna_access.c.
Referenced by bpy_class_call(), pyrna_func_call(), RNA_function_call_direct_va(), RNA_parameter_dynamic_length_get(), RNA_parameter_dynamic_length_set(), RNA_parameter_get(), and RNA_parameter_set().
| void RNA_parameter_list_free | ( | ParameterList * | parms | ) |
Definition at line 7303 of file rna_access.c.
References ParameterDynAlloc::array, BLI_freelistN(), FunctionRNA::cont, ParameterList::data, ListBase::first, PropertyRNA::flag, ParameterList::func, MEM_freeN, PropertyRNA::next, NULL, PROP_COLLECTION, PROP_DYNAMIC, ContainerRNA::properties, rna_parameter_size(), and PropertyRNA::type.
Referenced by pyrna_func_call(), RNA_function_call_direct_va(), RNA_property_collection_add(), and RNA_property_collection_remove().
| void RNA_parameter_list_next | ( | ParameterIterator * | iter | ) |
Definition at line 7361 of file rna_access.c.
References ParameterList::data, ParameterIterator::data, PropertyRNA::next, NULL, ParameterIterator::offset, ParameterIterator::parm, ParameterIterator::parms, rna_parameter_size(), ParameterIterator::size, and ParameterIterator::valid.
Referenced by bpy_class_call(), pyrna_func_call(), RNA_function_call_direct_va(), RNA_parameter_dynamic_length_get(), RNA_parameter_dynamic_length_set(), RNA_parameter_get(), and RNA_parameter_set().
| int RNA_parameter_list_ret_count | ( | ParameterList * | parms | ) |
Definition at line 7340 of file rna_access.c.
References ParameterList::ret_count.
| int RNA_parameter_list_size | ( | ParameterList * | parms | ) |
Definition at line 7330 of file rna_access.c.
References ParameterList::alloc_size.
| void RNA_parameter_set | ( | ParameterList * | parms, |
| PropertyRNA * | parm, | ||
| const void * | value | ||
| ) |
Definition at line 7423 of file rna_access.c.
References ParameterDynAlloc::array, ParameterDynAlloc::array_tot, ParameterIterator::data, PropertyRNA::flag, float(), MEM_freeN, MEM_mallocN, ParameterIterator::parm, PROP_BOOLEAN, PROP_DYNAMIC, PROP_FLOAT, PROP_INT, PROP_STRING, RNA_parameter_list_begin(), RNA_parameter_list_end(), RNA_parameter_list_next(), size(), ParameterIterator::size, PropertyRNA::type, and ParameterIterator::valid.
Referenced by RNA_parameter_set_lookup().
| void RNA_parameter_set_lookup | ( | ParameterList * | parms, |
| const char * | identifier, | ||
| const void * | value | ||
| ) |
Definition at line 7469 of file rna_access.c.
References FunctionRNA::cont, ListBase::first, ParameterList::func, PropertyRNA::next, ContainerRNA::properties, RNA_parameter_set(), RNA_property_identifier(), and STREQ.
| char* RNA_path_append | ( | const char * | path, |
| PointerRNA * | UNUSEDptr, | ||
| PropertyRNA * | prop, | ||
| int | intkey, | ||
| const char * | strkey | ||
| ) |
Definition at line 5529 of file rna_access.c.
References BLI_array_alloca, BLI_dynstr_append(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BLI_snprintf(), BLI_str_escape(), PROP_COLLECTION, result, RNA_property_identifier(), and RNA_property_type().
Referenced by tree_element_to_path().
|
static |
Definition at line 5926 of file rna_access.c.
References BLI_assert, IDP_Chain::index, and RNA_MAX_ARRAY_LENGTH.
Referenced by rna_path_array_multi_string_from_flat_index().
|
static |
Definition at line 5947 of file rna_access.c.
References BLI_snprintf_rlen(), IDP_Chain::index, ptr, RNA_MAX_ARRAY_LENGTH, rna_path_array_multi_from_flat_index(), and RNA_property_array_dimension().
Referenced by RNA_path_from_ID_to_property_index().
| char* RNA_path_back | ( | const char * | path | ) |
Definition at line 5574 of file rna_access.c.
References BLI_strdup(), MEM_freeN, NULL, result, and rna_path_token().
|
static |
Definition at line 5791 of file rna_access.c.
References BLI_assert, PointerRNA::data, NULL, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), and RNA_path_from_struct_to_idproperty().
Referenced by RNA_path_from_ID_to_struct().
| char* RNA_path_from_ID_to_property | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 6027 of file rna_access.c.
References ptr, and RNA_path_from_ID_to_property_index().
Referenced by add_keyingset_button_exec(), ANIM_channel_draw_widgets(), BKE_animdata_driver_path_hack(), BKE_fcurve_find_by_rna_context_ui(), BKE_keyblock_curval_rnapath_get(), clear_key_button_exec(), copy_as_driver_button_poll(), copy_data_path_button_exec(), copy_data_path_button_poll(), delete_key_button_exec(), driverdropper_sample(), followpath_path_animate_exec(), id_data_find_fcurve(), insert_key_button_exec(), pyrna_prop_path_from_id(), pyrna_struct_anim_args_parse_ex(), pyrna_struct_path_from_id(), remove_keyingset_button_exec(), RNA_path_full_property_py_ex(), RNA_path_resolve_from_type_to_property(), RNA_path_struct_property_py(), RNA_property_overridden(), rna_property_override_property_real_id_owner(), RNA_property_path_from_ID_check(), RNA_struct_override_matches(), ui_but_anim_expression_create(), ui_but_event_property_operator_string(), and UI_context_copy_to_selected_list().
| char* RNA_path_from_ID_to_property_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index_dim, | ||
| int | index | ||
| ) |
| index_dim | The dimension to show, 0 disables. 1 for 1d array, 2 for 2d. etc. |
| index | The flattened index to use when index_dim > 0, this is expanded when used with multi-dimensional arrays. |
Definition at line 5971 of file rna_access.c.
References BLI_sprintfN(), BLI_str_escape(), PointerRNA::data, IDP_Chain::index, PropertyRNA::magic, MAX_IDPROP_NAME, MEM_freeN, NULL, PointerRNA::owner_id, ptr, RNA_MAGIC, RNA_MAX_ARRAY_LENGTH, rna_path_array_multi_string_from_flat_index(), RNA_path_from_ID_to_struct(), RNA_property_identifier(), RNA_struct_is_ID(), and PointerRNA::type.
Referenced by RNA_path_from_ID_to_property(), and RNA_path_from_real_ID_to_property_index().
| char* RNA_path_from_ID_to_struct | ( | PointerRNA * | ptr | ) |
Definition at line 5876 of file rna_access.c.
References BLI_strdup(), PointerRNA::data, StructRNA::nested, NULL, PointerRNA::owner_id, StructRNA::path, ptr, RNA_id_pointer_create(), rna_path_from_ID_to_idpgroup(), RNA_property_identifier(), RNA_PropertyGroup, RNA_struct_find_nested(), RNA_struct_is_a(), RNA_struct_is_ID(), and PointerRNA::type.
Referenced by action_get_item_transforms(), DEG_get_evaluated_rna_pointer(), fcurves_to_pchan_links_get(), node_group_make_insert_selected(), node_group_separate_selected(), node_group_ungroup(), pyrna_struct_anim_args_parse_no_resolve(), pyrna_struct_path_from_id(), RNA_path_from_ID_to_property_index(), RNA_path_from_real_ID_to_struct(), RNA_path_full_struct_py(), RNA_path_resolve_from_type_to_property(), shortcut_property_from_rna(), ui_but_user_menu_add(), ui_but_user_menu_find(), and WM_msg_subscribe_rna_params().
| char* RNA_path_from_real_ID_to_property_index | ( | Main * | bmain, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index_dim, | ||
| int | index, | ||
| ID ** | r_real_id | ||
| ) |
Definition at line 6032 of file rna_access.c.
References IDP_Chain::index, NULL, PointerRNA::owner_id, ptr, RNA_path_from_ID_to_property_index(), and rna_prepend_real_ID_path().
Referenced by copy_as_driver_button_exec(), copy_data_path_button_exec(), and pyrna_prop_repr_ex().
| char* RNA_path_from_real_ID_to_struct | ( | Main * | bmain, |
| PointerRNA * | ptr, | ||
| struct ID ** | r_real | ||
| ) |
Definition at line 5918 of file rna_access.c.
References PointerRNA::owner_id, ptr, RNA_path_from_ID_to_struct(), and rna_prepend_real_ID_path().
Referenced by pyrna_struct_repr().
| char* RNA_path_from_struct_to_idproperty | ( | PointerRNA * | ptr, |
| IDProperty * | needle | ||
| ) |
Find the path from the structure referenced by the pointer to the runtime RNA-defined IDProperty object.
| ptr | Reference to the object owning the custom property storage. |
| needle | Custom property object to find. |
Definition at line 5781 of file rna_access.c.
References NULL, ptr, rna_idp_path(), and RNA_struct_idprops().
Referenced by rna_path_from_ID_to_idpgroup(), and UI_context_copy_to_selected_list().
Get the ID as a python representation, eg: bpy.data.foo["bar"]
Definition at line 6088 of file rna_access.c.
References BKE_idtype_idcode_to_name_plural(), BLI_sprintfN(), BLI_str_escape(), GS, id, ID::name, and RNA_find_real_ID_and_path().
Referenced by id_drop_copy(), RNA_path_full_property_py_ex(), RNA_path_full_struct_py(), rna_pointer_as_string__bldata(), and text_drop_paste().
| char* RNA_path_full_property_py | ( | Main * | bmain, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 6195 of file rna_access.c.
References IDP_Chain::index, ptr, and RNA_path_full_property_py_ex().
Referenced by WM_prop_pystring_assign().
| char* RNA_path_full_property_py_ex | ( | Main * | bmain, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| bool | use_fallback | ||
| ) |
Get the ID.struct.property as a python representation, eg: bpy.data.foo["bar"].some_struct.some_prop[10]
Definition at line 6147 of file rna_access.c.
References BLI_sprintfN(), IDP_Chain::index, MEM_freeN, NULL, PointerRNA::owner_id, ptr, ret, RNA_path_from_ID_to_property(), RNA_path_full_ID_py(), RNA_property_array_check(), and RNA_property_identifier().
Referenced by copy_data_path_button_exec(), RNA_path_full_property_py(), and ui_tooltip_data_from_button().
| char* RNA_path_full_struct_py | ( | Main * | bmain, |
| struct PointerRNA * | ptr | ||
| ) |
Get the ID.struct as a python representation, eg: bpy.data.foo["bar"].some_struct
Definition at line 6115 of file rna_access.c.
References BLI_sprintfN(), MEM_freeN, NULL, PointerRNA::owner_id, ptr, ret, RNA_path_from_ID_to_struct(), and RNA_path_full_ID_py().
Referenced by copy_data_path_button_exec(), rna_pointer_as_string__bldata(), and ui_tooltip_data_from_button().
|
static |
Generic rna path parser.
| ptr | The root of given RNA path. |
| path | The RNA path. |
| r_ptr | The final RNA data holding the last property in path. |
| r_prop | The final property of r_ptr, from path. |
| r_index | The final index in the r_prop, if defined by path. |
| r_item_ptr | Only valid for Pointer and Collection, return the actual value of the pointer, or of the collection item. Mutually exclusive with eval_pointer option. |
| r_elements | A list of PropertyElemRNA items (pairs of PointerRNA, PropertyRNA that represent the whole given path). |
| eval_pointer | If true, and path leads to a Pointer property, or an item in a Collection property, r_ptr will be set to the value of that property, and r_prop will be NULL. Mutually exclusive with r_item_ptr. |
Definition at line 5233 of file rna_access.c.
References BLI_addtail(), BLI_assert, PointerRNA::data, IDP_GetPropertyFromGroup(), PropertyElemRNA::index, MEM_freeN, MEM_mallocN, NULL, PropertyElemRNA::prop, PROP_COLLECTION, PROP_POINTER, PropertyElemRNA::ptr, ptr, rna_path_parse_array_index(), rna_path_parse_collection_key(), rna_path_token(), RNA_POINTER_INVALIDATE, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_idprops(), rna_token_strip_quotes(), and type.
Referenced by RNA_path_resolve(), RNA_path_resolve_elements(), RNA_path_resolve_full(), RNA_path_resolve_property(), RNA_path_resolve_property_and_item_pointer(), RNA_path_resolve_property_and_item_pointer_full(), and RNA_path_resolve_property_full().
|
static |
Definition at line 5118 of file rna_access.c.
References len, MEM_freeN, NULL, ptr, RNA_MAX_ARRAY_DIMENSION, rna_path_token(), RNA_property_array_dimension(), RNA_property_array_item_index(), and rna_token_strip_quotes().
Referenced by rna_path_parse().
|
static |
Definition at line 5053 of file rna_access.c.
References PointerRNA::data, MEM_freeN, NULL, ptr, rna_path_token(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string(), RNA_property_collection_type_get(), and rna_token_strip_quotes().
Referenced by rna_path_parse().
| char* RNA_path_property_py | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Get the struct.property as a python representation, eg: some_prop[10]
Definition at line 6245 of file rna_access.c.
References BLI_sprintfN(), IDP_Chain::index, ret, RNA_property_array_check(), and RNA_property_identifier().
| bool RNA_path_resolve | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop | ||
| ) |
Resolve the given RNA Path to find the pointer and/or property indicated by fully resolving the path.
Definition at line 5400 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
Referenced by DEG_get_evaluated_rna_pointer(), drw_uniform_property_lookup(), lookup_property(), radial_control_get_path(), RNA_property_path_from_ID_check(), UI_pie_menu_invoke_from_rna_enum(), and wm_msg_rna_update_by_id().
| bool RNA_path_resolve_elements | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| ListBase * | r_elements | ||
| ) |
Resolve the given RNA Path into a linked list of PropertyElemRNA's.
To be used when complex operations over path are needed, like e.g. get relative paths, to avoid too much string operations.
Definition at line 5524 of file rna_access.c.
References NULL, ptr, and rna_path_parse().
Referenced by RNA_path_resolve_from_type_to_property().
| char* RNA_path_resolve_from_type_to_property | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const StructRNA * | type | ||
| ) |
Definition at line 6046 of file rna_access.c.
References BLI_freelistN(), BLI_strdup(), ListBase::last, MEM_freeN, NULL, PointerRNA::owner_id, PropertyElemRNA::prev, PropertyElemRNA::ptr, ptr, RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_ID_to_struct(), RNA_path_resolve_elements(), RNA_struct_is_a(), type, and PointerRNA::type.
Referenced by UI_context_copy_to_selected_list().
| bool RNA_path_resolve_full | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index | ||
| ) |
Resolve the given RNA Path to find the pointer and/or property + array index indicated by fully resolving the path.
Definition at line 5416 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
Referenced by BCAnimationCurve::add_value_from_rna(), blender::deg::DepsgraphRelationBuilder::build_animdata_curves_targets(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphNodeBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_id_property(), driver_get_variable_property(), pyrna_struct_path_resolve(), blender::deg::RNAPathKey::RNAPathKey(), and screen_user_menu_draw().
| bool RNA_path_resolve_property | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop | ||
| ) |
Resolve the given RNA Path to find both the pointer AND property indicated by fully resolving the path.
This is a convenience method to avoid logic errors and ugly syntax.
Definition at line 5434 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), ANIM_add_driver(), ANIM_add_driver_with_target(), ANIM_apply_keyingset(), ANIM_channel_draw_widgets(), ANIM_copy_driver(), ANIM_list_elem_update(), ANIM_paste_driver(), ANIM_unit_mapping_get_factor(), BKE_animsys_rna_path_resolve(), BKE_lib_override_rna_property_find(), check_rna_path_is_valid(), clean_fcurve(), clear_keyframe(), copy_to_selected_button(), delete_keyframe(), getname_anim_fcurve(), graph_panel_key_properties(), insert_keyframe(), insert_keyframe_direct(), lib_override_library_id_reset_do(), nlaevalchan_verify(), override_remove_button_exec(), pastebuf_match_path_property(), pose_propagate_get_refVal(), RNA_struct_find_property(), RNA_struct_override_apply(), RNA_struct_override_store(), ui_selectcontext_begin(), and update_autoflags_fcurve().
| bool RNA_path_resolve_property_and_item_pointer | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| PointerRNA * | r_item_ptr | ||
| ) |
Resolve the given RNA Path to find both the pointer AND property indicated by fully resolving the path, and get the value of the Pointer property (or item of the collection).
This is a convenience method to avoid logic errors and ugly syntax, it combines both RNA_path_resolve and RNA_path_resolve_property in a single call.
| r_item_ptr | The final Pointer or Collection item value. You must check for its validity before use! |
Definition at line 5476 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
Referenced by RNA_struct_override_apply().
| bool RNA_path_resolve_property_and_item_pointer_full | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index, | ||
| PointerRNA * | r_item_ptr | ||
| ) |
Resolve the given RNA Path to find both the pointer AND property (as well as the array index) indicated by fully resolving the path, and get the value of the Pointer property (or item of the collection).
This is a convenience method to avoid logic errors and ugly syntax, it combines both RNA_path_resolve_full and RNA_path_resolve_property_full in a single call.
| r_item_ptr | The final Pointer or Collection item value. You must check for its validity before use! |
Definition at line 5502 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
| bool RNA_path_resolve_property_full | ( | PointerRNA * | ptr, |
| const char * | path, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index | ||
| ) |
Resolve the given RNA Path to find the pointer AND property (as well as the array index) indicated by fully resolving the path.
This is a convenience method to avoid logic errors and ugly syntax.
Definition at line 5454 of file rna_access.c.
References PointerRNA::data, NULL, ptr, and rna_path_parse().
Referenced by dtar_get_prop_val(), and pyrna_struct_anim_args_parse_ex().
| bool RNA_path_resolved_create | ( | PointerRNA * | ptr, |
| struct PropertyRNA * | prop, | ||
| const int | prop_index, | ||
| PathResolvedRNA * | r_anim_rna | ||
| ) |
Definition at line 8170 of file rna_access.c.
References PathResolvedRNA::prop, PathResolvedRNA::prop_index, PathResolvedRNA::ptr, ptr, and RNA_property_array_length().
Referenced by insert_keyframe_value().
| char* RNA_path_struct_property_py | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Get the struct.property as a python representation, eg: some_struct.some_prop[10]
Definition at line 6204 of file rna_access.c.
References BLI_sprintfN(), BLI_strdup(), IDP_Chain::index, MEM_freeN, NULL, PointerRNA::owner_id, ptr, ret, RNA_path_from_ID_to_property(), RNA_property_array_check(), RNA_property_identifier(), RNA_struct_find_property(), RNA_struct_is_ID(), and PointerRNA::type.
Referenced by wm_prop_pystring_from_context().
|
static |
Definition at line 4960 of file rna_access.c.
References BLI_str_escape_find_quote(), BLI_str_unescape(), len, MEM_mallocN, and NULL.
Referenced by RNA_path_back(), rna_path_parse(), rna_path_parse_array_index(), and rna_path_parse_collection_key().
| void RNA_pointer_add | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6586 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_pointer_add(), RNA_struct_find_property(), and PointerRNA::type.
| char* RNA_pointer_as_string | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop_ptr, | ||
| PointerRNA * | ptr_prop | ||
| ) |
Definition at line 6770 of file rna_access.c.
References BLI_strdup(), C, CTX_data_main(), PointerRNA::data, IDP_ID, NULL, ptr, rna_idproperty_check(), rna_pointer_as_string__bldata(), RNA_pointer_as_string_id(), and IDProperty::type.
Referenced by RNA_property_as_string().
|
static |
Definition at line 6759 of file rna_access.c.
References BLI_strdup(), NULL, PointerRNA::owner_id, ptr, RNA_path_full_ID_py(), RNA_path_full_struct_py(), RNA_struct_is_ID(), and PointerRNA::type.
Referenced by RNA_pointer_as_string().
| char* RNA_pointer_as_string_id | ( | bContext * | C, |
| PointerRNA * | ptr | ||
| ) |
Definition at line 6724 of file rna_access.c.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), C, MEM_freeN, ptr, RNA_property_as_string(), RNA_property_identifier(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and STREQ.
Referenced by RNA_pointer_as_string(), and WM_operator_pystring_ex().
| char* RNA_pointer_as_string_keywords | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| const bool | as_function, | ||
| const bool | all_args, | ||
| const bool | nested_args, | ||
| const int | max_prop_length | ||
| ) |
Definition at line 6866 of file rna_access.c.
References C, ptr, RNA_pointer_as_string_keywords_ex(), RNA_struct_iterator_property(), and PointerRNA::type.
Referenced by WM_operator_pystring_ex().
| char* RNA_pointer_as_string_keywords_ex | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| const bool | as_function, | ||
| const bool | all_args, | ||
| const bool | nested_args, | ||
| const int | max_prop_length, | ||
| PropertyRNA * | iterprop | ||
| ) |
Definition at line 6786 of file rna_access.c.
References BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BLI_strdup(), C, PropertyRNA::flag_parameter, MEM_freeN, NULL, PARM_OUTPUT, PARM_REQUIRED, PROP_NEVER_NULL, PROP_POINTER, ptr, RNA_parameter_flag(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_as_string(), RNA_property_flag(), RNA_property_identifier(), RNA_property_is_set(), RNA_property_type(), RNA_struct_idprops_check(), STREQ, and PointerRNA::type.
Referenced by RNA_function_as_string_keywords(), and RNA_pointer_as_string_keywords().
| void RNA_pointer_create | ( | ID * | id, |
| StructRNA * | type, | ||
| void * | data, | ||
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 146 of file rna_access.c.
References data, PointerRNA::data, id, NULL, PointerRNA::owner_id, StructRNA::refine, rna_ID_refine(), type, and PointerRNA::type.
Referenced by acf_fcurve_name_prop(), acf_gpl_name_prop(), acf_group_name_prop(), acf_masklay_name_prop(), acf_nlaaction_name_prop(), acf_nlatrack_name_prop(), acf_shapekey_name_prop(), actedit_change_action(), action_get_item_transforms(), ANIM_channel_draw_widgets(), ANIM_fmodifier_panels(), ANIM_relative_keyingset_add_source(), apply_armature_pose2bones_ui(), armature_bone_layers_exec(), bake_func(), BKE_animdata_driver_path_hack(), BKE_callback_exec_id_depsgraph(), BKE_keyblock_curval_rnapath_get(), BKE_nlameta_flush_transforms(), BKE_node_copy_ex(), block_create_autorun_warning(), bpy_class_call(), BPy_init_modules(), bpy_pydriver_depsgraph_as_pyobject(), bpy_rna_data_context_enter(), bpy_utils_previews_load(), bpy_utils_previews_new(), buttons_context_path(), buttons_context_path_bone(), buttons_context_path_modifier(), buttons_context_path_particle(), buttons_context_path_pose_bone(), buttons_context_path_view_layer(), buttons_texture_modifier_foreach(), buttons_texture_modifier_geonodes_users_add(), buttons_texture_modifier_gpencil_foreach(), buttons_texture_users_find_nodetree(), buttons_texture_users_from_context(), clip_draw_dopesheet_channels(), collection_isolate_exec(), colorband_buttons_layout(), colorband_tools_func(), context_cycle_prop_get(), create_func(), CTX_data_dir_get_ex(), CTX_data_list_add(), CTX_data_pointer_set(), CurveProfile_buttons_layout(), denoise_func(), depthdropper_init(), draw_constraint_header(), draw_socket_list(), ED_animedit_unlink_action(), ED_annotation_data_get_pointers_direct(), ED_area_header_switchbutton(), ED_file_path_button(), ED_region_do_draw(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ed_screens_statusbar_menu_create(), ED_time_scrub_channel_search_draw(), ED_view3d_cursor3d_update(), edbm_average_normals_ui(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edbm_normals_tools_ui(), edbm_point_normals_ui(), envelope_panel_draw(), fcurves_to_pchan_links_get(), file_main_region_message_subscribe(), file_panel_execution_buttons_draw(), followpath_path_animate_exec(), Freestyle_getCurrentScene(), blender::compositor::NodeOutput::getEditorValueColor(), blender::compositor::NodeInput::getEditorValueColor(), blender::compositor::NodeOutput::getEditorValueFloat(), blender::compositor::NodeInput::getEditorValueFloat(), blender::compositor::NodeOutput::getEditorValueVector(), blender::compositor::NodeInput::getEditorValueVector(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), gizmo2d_pivot_point_message_subscribe(), GIZMO_GT_snap_3d(), gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_spin_init_message_subscribe(), gizmo_xform_message_subscribe(), gpencil_interpolate_seq_ui(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_get_property_pointers(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_drivers_popover(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), graph_region_message_subscribe(), id_data_find_fcurve(), image_new_draw(), image_open_draw(), image_save_as_draw(), lib_override_library_id_reset_do(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), modifier_ops_extra_draw(), modifier_panel_get_property_pointers(), nla_channel_region_message_subscribe(), nla_main_region_message_subscribe(), nla_panel_context(), nlaedit_clear_scale_exec(), nlastrip_evaluate_controls(), node_buts_normal(), node_buts_rgb(), node_buts_value(), node_composit_buts_cryptomatte(), node_composit_buts_image(), node_composit_buts_image_ex(), node_composit_buts_keyingscreen(), node_composit_buts_planetrackdeform(), node_composit_buts_trackpos(), node_draw_sockets(), node_file_output_socket_draw(), node_group_make_insert_selected(), node_group_separate_selected(), node_group_ungroup(), node_init(), node_socket_color_get(), node_socket_get_color(), node_socket_get_float(), node_socket_get_vector(), node_socket_set_color(), node_socket_set_float(), node_socket_set_vector(), node_texture_buts_image_ex(), node_texture_buts_proc(), node_update_basis(), nodeRemoveNode(), blender::nodes::NodeTreeRef::NodeTreeRef(), object_convert_ui(), operator_properties_init(), outliner_base_or_object_pointer_create(), outliner_collection_set_flag_recursive_fn(), outliner_draw_restrictbuts(), outliner_layer_or_collection_pointer_create(), outliner_object_set_flag_recursive_fn(), outliner_restrict_properties_collection_set(), outliner_set_properties_tab(), pose_bone_layers_exec(), pose_calculate_paths_exec(), pose_calculate_paths_invoke(), pose_slide_apply_props(), pyop_as_string(), pyop_getrna_type(), PYOP_wrap_macro_define(), pyrna_dir_members_rna(), pyrna_func_call(), pyrna_param_to_py(), pyrna_py_to_prop(), pyrna_srna_contains_pointer_prop_srna(), pyrna_struct_bl_rna_get_subclass(), pyrna_struct_driver_add(), pyrna_struct_get_rna_type(), pyrna_subtype_set_rna(), radial_control_get_properties(), recalcData_nla(), render_func(), reset_func(), rigidbody_objects_calc_mass_exec(), rigidbody_objects_shape_change_exec(), RNA_function_as_string_keywords(), RNA_function_call_direct_va(), rna_function_parameter_parse(), rna_raw_access(), RNA_struct_count_properties(), RNA_struct_find_function(), saction_channel_region_message_subscribe(), saction_main_region_message_subscribe(), screen_user_menu_draw(), screenshot_draw(), sequencer_add_draw(), sequencer_change_path_exec(), sequencer_split_ui(), shaderfx_panel_get_property_pointers(), singleuser_action_fn(), space_type_set_or_cycle_exec(), sync_func(), template_operator_property_buts_draw_single(), template_search_exec_fn(), blender::bke::tests::test_render_pass_conflict(), tile_add_draw(), tile_fill_draw(), toggle_pin_exec(), ui_but_string_get_ex(), ui_but_string_set(), UI_context_copy_to_selected_list(), ui_context_selected_bones_via_pose(), ui_layout_operator_properties_only_booleans(), ui_node_draw_input(), ui_node_draw_node(), UI_pie_menu_invoke_from_rna_enum(), ui_popup_context_menu_for_panel(), uiLayoutSetContextFromBut(), uilist_draw_filter_default(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), uiTemplateNodeLink(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateShaderFx(), update_output_file(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_editvertex_buts(), v3d_posearmature_buts(), view3d_panel_vgroup(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_gizmo_message_subscribe(), WIDGETGROUP_light_spot_refresh(), WIDGETGROUP_node_corner_pin_refresh(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_node_sbeam_refresh(), WIDGETGROUP_node_transform_refresh(), wm_gizmo_create(), WM_gizmo_properties_create(), WM_gizmo_properties_create_ptr(), wm_gpencil_import_svg_draw(), wm_keymap_item_find(), wm_keymap_item_find_in_keymap(), wm_operator_create(), WM_operator_last_properties_ensure(), WM_operator_name_call_with_properties(), WM_operator_properties_create(), WM_operator_properties_create_ptr(), wm_stereo3d_set_draw(), WM_toolsystem_ref_properties_ensure_ex(), WM_toolsystem_ref_properties_get_ex(), and wm_userpref_update_when_changed().
| PointerRNA RNA_pointer_get | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Retrieve the named property from PointerRNA.
Definition at line 6562 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, PointerRNA_NULL, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by advanced_panel_draw(), blender_camera_from_object(), blender_device_info(), BlenderObjectCulling::BlenderObjectCulling(), BlenderSync::BlenderSync(), UnitConverter::calculate_scale(), create_subd_mesh(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), denoise_func(), DocumentExporter::exportCurrentScene(), DocumentImporter::finish(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), BlenderSync::get_session_pause(), BlenderViewportParameters::get_viewport_display_render_pass(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_setup(), gpencil_modifier_masking_panel_draw(), BlenderObjectCulling::init_object(), layers_panel_draw(), node_buts_image_user(), node_composit_buts_cryptomatte(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_image(), node_composit_buts_movieclip_ex(), node_composit_buts_viewlayers(), node_file_output_socket_draw(), node_shader_buts_normal_map(), node_shader_buts_tangent(), node_shader_buts_tex_environment(), node_shader_buts_tex_environment_ex(), node_shader_buts_tex_image(), node_shader_buts_tex_image_ex(), node_shader_buts_uvmap(), node_shader_buts_vertex_color(), object_motion_steps(), object_ray_visibility(), object_subdivision_type(), object_use_deform_motion(), offset_panel_draw(), panel_draw(), BlenderSession::reset_session(), BlenderSync::sync_camera(), BlenderSync::sync_integrator(), BlenderSync::sync_recalc(), BlenderSync::sync_render_passes(), BlenderSync::sync_view(), BlenderSync::sync_view_layer(), texture_panel_draw(), UI_icon_from_rnaptr(), uiTemplateKeymapItemProperties(), v3d_editarmature_buts(), v3d_transform_butsR(), and weightvg_ui_common().
|
static |
Definition at line 179 of file rna_access.c.
References PointerRNA::data, PointerRNA::owner_id, ptr, STRUCT_ID, and type.
Referenced by rna_pointer_inherit_refine(), RNA_property_collection_add(), and rna_property_collection_get_idp().
| PointerRNA rna_pointer_inherit_refine | ( | PointerRNA * | ptr, |
| StructRNA * | type, | ||
| void * | data | ||
| ) |
Definition at line 196 of file rna_access.c.
References data, PointerRNA_NULL, ptr, result, rna_pointer_inherit_id(), and type.
Referenced by rna_array_lookup_int(), rna_listbase_lookup_int(), RNA_pointer_recast(), and RNA_property_pointer_get().
| bool RNA_pointer_is_null | ( | const PointerRNA * | ptr | ) |
Definition at line 174 of file rna_access.c.
References PointerRNA::data, NULL, PointerRNA::owner_id, ptr, and PointerRNA::type.
Referenced by advanced_panel_draw(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphRelationBuilder::build_driver_variables(), edit_constraint_invoke_properties(), edit_modifier_invoke_properties_with_hover(), edit_shaderfx_invoke_properties(), gpencil_edit_modifier_invoke_properties(), gpencil_modifier_masking_panel_draw(), jump_to_target_ptr(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), modifier_panel_get_property_pointers(), offset_panel_draw(), panel_custom_data_active_get(), panel_custom_data_active_set(), panel_draw(), rna_idp_path(), texture_panel_draw(), and weightvg_ui_common().
| void RNA_pointer_recast | ( | PointerRNA * | ptr, |
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 217 of file rna_access.c.
References StructRNA::base, PointerRNA::data, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), rna_pointer_inherit_refine(), RNA_struct_is_ID(), and PointerRNA::type.
Referenced by pyrna_struct_type_recast().
| void RNA_pointer_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| PointerRNA | ptr_value | ||
| ) |
Definition at line 6574 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, NULL, ptr, RNA_property_pointer_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by toggle_pin_exec().
|
static |
Definition at line 5845 of file rna_access.c.
References BLI_sprintfN(), BLI_strdup(), MEM_freeN, NULL, and RNA_find_real_ID_and_path().
Referenced by RNA_path_from_real_ID_to_property_index(), and RNA_path_from_real_ID_to_struct().
| bool RNA_property_animateable | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2168 of file rna_access.c.
References PropertyRNA::flag, id_can_have_animdata(), PointerRNA::owner_id, PROP_ANIMATABLE, PROP_EDITABLE, ptr, and rna_ensure_property().
Referenced by add_driver_button_invoke(), add_driver_button_none(), add_driver_button_poll(), add_keyingset_button_exec(), BKE_animsys_read_from_rna_path(), BKE_animsys_rna_path_resolve(), BKE_animsys_write_to_rna_path(), BKE_fcurve_find_by_rna_context_ui(), copy_driver_button_exec(), do_outliner_drivers_editop(), do_outliner_keyingset_editop(), driver_mapping_type_itemsf(), driverdropper_init(), insert_key_button_exec(), nlaevalchan_verify(), paste_driver_button_exec(), pyrna_struct_anim_args_parse_ex(), ui_popup_context_menu_for_button(), and uiItemDecoratorR_prop().
| bool RNA_property_animated | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2184 of file rna_access.c.
References BKE_fcurve_find_by_rna(), len, NULL, ptr, RNA_property_array_check(), and RNA_property_array_length().
Referenced by RNA_struct_override_matches().
| bool RNA_property_array_check | ( | PropertyRNA * | prop | ) |
Definition at line 1223 of file rna_access.c.
References rna_ensure_property_array_check().
Referenced by add_driver_with_target(), BCAnimationCurve::add_value_from_rna(), ANIM_add_driver_with_target(), assign_default_button_poll(), copy_as_driver_button_poll(), depthdropper_poll(), driver_mapping_type_itemsf(), dtar_get_prop_val(), getname_anim_fcurve(), initTransInfo(), menu_search_exec_fn(), nlaevalchan_get_default_values(), nlaevalchan_verify_key(), pose_propagate_get_refVal(), pyrna_param_to_py(), pyrna_prop_CreatePyObject(), pyrna_prop_str(), pyrna_prop_to_py(), pyrna_py_to_prop(), pyrna_struct_anim_args_parse_ex(), RNA_path_full_property_py_ex(), RNA_path_property_py(), RNA_path_struct_property_py(), RNA_property_animated(), RNA_property_assign_default(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_boolean_get_default_index(), RNA_property_boolean_get_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_get_index(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_get_default_array(), RNA_property_int_get_default_index(), RNA_property_int_get_index(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_int_set_index(), saveTransform(), setting_get_rna_values(), tree_element_to_path(), ui_but_anim_expression_create(), ui_but_range_set_soft(), ui_but_value_get(), ui_but_value_set(), ui_button_value_default(), ui_def_but_rna(), ui_item_rna_is_expand(), ui_selectcontext_apply(), ui_selectcontext_begin(), ui_tooltip_data_from_button(), uiDefAutoButR(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), and WM_operator_view3d_unit_defaults().
| int RNA_property_array_dimension | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | length[] | ||
| ) |
Definition at line 1229 of file rna_access.c.
References PropertyRNA::arraydimension, length(), ptr, rna_ensure_property(), and rna_ensure_property_multi_array_length().
Referenced by copy_as_driver_button_exec(), copy_values(), prop_subscript_ass_array_slice(), py_to_array_index(), pyrna_array_contains_py(), pyrna_math_object_from_array(), pyrna_prop_array_length(), pyrna_prop_array_subscript_slice(), pyrna_py_from_array_index(), pyrna_py_to_prop_array_index(), rna_array_as_string(), rna_path_array_multi_string_from_flat_index(), rna_path_parse_array_index(), rna_property_array_length_all_dimensions(), ui_item_array(), validate_array(), and validate_array_length().
| char RNA_property_array_item_char | ( | PropertyRNA * | prop, |
| int | index | ||
| ) |
Definition at line 1250 of file rna_access.c.
References BLI_assert, ELEM, PROP_ACCELERATION, PROP_AXISANGLE, PROP_COLOR, PROP_COLOR_GAMMA, PROP_COORDS, PROP_DIRECTION, PROP_EULER, PROP_QUATERNION, PROP_TRANSLATION, PROP_VELOCITY, PROP_XYZ, PROP_XYZ_LENGTH, and RNA_property_subtype().
Referenced by getname_anim_fcurve(), outliner_add_element(), ui_item_array(), and uiItemFullR().
| int RNA_property_array_item_index | ( | PropertyRNA * | prop, |
| char | name | ||
| ) |
Definition at line 1281 of file rna_access.c.
References ELEM, PROP_ACCELERATION, PROP_AXISANGLE, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DIRECTION, PROP_EULER, PROP_QUATERNION, PROP_TRANSLATION, PROP_VELOCITY, PROP_XYZ, PROP_XYZ_LENGTH, rna_ensure_property(), and PropertyRNA::subtype.
Referenced by rna_path_parse_array_index().
| int RNA_property_array_length | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 1218 of file rna_access.c.
References ptr, and rna_ensure_property_array_length().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), ANIM_add_driver_with_target(), ANIM_apply_keyingset(), BKE_animsys_rna_path_resolve(), bpy_prop_boolean_array_get_fn(), bpy_prop_boolean_array_set_fn(), bpy_prop_float_array_get_fn(), bpy_prop_float_array_set_fn(), bpy_prop_int_array_get_fn(), bpy_prop_int_array_set_fn(), clear_keyframe(), delete_keyframe(), do_outliner_drivers_editop(), drop_color_invoke(), drw_uniform_property_lookup(), dtar_get_prop_val(), eyedropper_init(), foreach_attr_type(), foreach_parse_args(), get_but_property_array_length(), handle_layer_buttons(), lookup_property(), mathutils_rna_vector_set(), nlaevalchan_get_default_values(), nlaevalchan_verify_key(), outliner_add_element(), override_remove_button_exec(), pose_propagate_get_refVal(), prop_subscript_ass_array_slice(), pyrna_array_contains_py(), pyrna_driver_get_variable_value(), pyrna_math_object_from_array(), pyrna_param_to_py(), pyrna_prop_array_bool(), pyrna_prop_array_length(), pyrna_struct_anim_args_parse_ex(), pyrna_struct_path_resolve(), radial_control_get_path(), RNA_function_call_direct_va(), RNA_path_resolved_create(), RNA_property_animated(), RNA_property_as_string(), rna_property_boolean_get_default_array_values(), RNA_property_float_get_array(), RNA_property_float_get_array_range(), rna_property_float_get_default_array_values(), RNA_property_float_set_array(), RNA_property_int_get_array(), RNA_property_int_get_array_range(), rna_property_int_get_default_array_values(), RNA_property_int_set_array(), rna_property_override_operation_apply(), rna_property_override_operation_store(), RNA_property_reset(), rna_raw_access(), setting_get_rna_values(), ui_but_v3_get(), ui_but_v3_set(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_item_enum_expand_tabs(), ui_item_rna_size(), ui_layer_but_cb(), ui_popup_context_menu_for_button(), ui_selectcontext_apply(), uiItemDecoratorR_prop(), uiItemFullR(), uiTemplateLayers(), validate_array_length(), widget_swatch(), and WM_gizmo_target_property_array_length().
|
static |
Definition at line 4451 of file rna_access.c.
References len, ptr, RNA_MAX_ARRAY_DIMENSION, RNA_property_array_dimension(), and size().
Referenced by rna_raw_access().
| char* RNA_property_as_string | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | max_prop_length | ||
| ) |
Definition at line 6996 of file rna_access.c.
References BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), BLI_str_escape(), bool_as_py_string(), C, free(), EnumPropertyItem::identifier, IDP_Chain::index, len, length(), MEM_freeN, MEM_mallocN, NULL, PROP_BOOLEAN, PROP_COLLECTION, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, CollectionPropertyIterator::ptr, ptr, rna_array_as_string(), RNA_pointer_as_string(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_enum_get(), RNA_property_enum_identifier(), RNA_property_enum_items(), RNA_property_flag(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), RNA_property_pointer_get(), RNA_property_string_get(), RNA_property_string_length(), RNA_property_type(), type, CollectionPropertyIterator::valid, and EnumPropertyItem::value.
Referenced by RNA_pointer_as_string_id(), RNA_pointer_as_string_keywords_ex(), and WM_prop_pystring_assign().
| bool RNA_property_assign_default | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 8125 of file rna_access.c.
References PROP_FLOAT, PROP_INT, ptr, RNA_property_array_check(), RNA_property_float_get(), RNA_property_float_set_default(), RNA_property_int_get(), RNA_property_int_set_default(), RNA_property_is_idprop(), and RNA_property_type().
Referenced by assign_default_button_exec().
|
static |
Definition at line 2393 of file rna_access.c.
References MIN2.
Referenced by rna_property_boolean_get_default_array_values().
| bool RNA_property_boolean_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2331 of file rna_access.c.
References BLI_assert, BoolPropertyRNA::defaultvalue, ELEM, BoolPropertyRNA::get, BoolPropertyRNA::get_ex, IDP_Int, PROP_BOOLEAN, ptr, rna_idproperty_check(), RNA_property_array_check(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), collection_isolate_exec(), data_transfer_poll_property(), dt_layers_select_dst_itemf(), dt_layers_select_src_itemf(), dtar_get_prop_val(), ED_object_add_generic_get_opts(), edbm_point_normals_modal(), file_sfile_to_operator_ex(), fileselect_ensure_updated_file_params(), gesture_modal_state_from_operator(), gpencil_convert_layer_exec(), initTransform(), initTransInfo(), load_data_init_from_operator(), menu_search_exec_fn(), outliner_collection_is_isolated(), outliner_collection_set_flag_recursive_fn(), outliner_object_set_flag_recursive_fn(), outliner_restrict_properties_enable_collection_set(), outliner_restrict_properties_enable_layer_collection_set(), pose_propagate_get_refVal(), pose_slide_apply_props(), pyrna_prop_to_py(), radial_control_get_properties(), radial_control_paint_tex(), RNA_boolean_get(), RNA_property_as_string(), RNA_property_boolean_get_array(), rna_raw_access(), setting_get_rna_values(), transform_poll_property(), ui_but_value_get(), ui_selectcontext_apply(), ui_selectcontext_begin(), uiItemFullR(), view3d_cursor3d_invoke(), view_scrolldown_exec(), view_scrollup_exec(), wm_link_append_flag(), and wm_stereo3d_set_properties().
| void RNA_property_boolean_get_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| bool * | values | ||
| ) |
Definition at line 2420 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, BoolPropertyRNA::getarray, BoolPropertyRNA::getarray_ex, IDP_Array, IDProperty::len, PROP_BOOLEAN, ptr, rna_idproperty_check(), RNA_property_array_check(), RNA_property_boolean_get(), rna_property_boolean_get_default_array_values(), and RNA_property_type().
Referenced by initTransInfo(), prop_subscript_ass_array_slice(), pyrna_array_contains_py(), pyrna_prop_array_subscript_slice(), rna_array_as_string_alloc(), RNA_boolean_get_array(), RNA_property_boolean_get_index(), RNA_property_boolean_set_index(), rna_raw_access(), setting_get_rna_values(), transformops_loopsel_hack(), ui_item_array(), and ui_item_enum_expand_tabs().
| bool RNA_property_boolean_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2557 of file rna_access.c.
References BLI_assert, BoolPropertyRNA::defaultvalue, ELEM, PROP_BOOLEAN, rna_ensure_property(), RNA_property_array_check(), and RNA_property_type().
Referenced by nlaevalchan_get_default_values(), outliner_collection_isolate_flag(), and RNA_property_reset().
| void RNA_property_boolean_get_default_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| bool * | values | ||
| ) |
Definition at line 2568 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, BoolPropertyRNA::defaultvalue, PROP_BOOLEAN, ptr, rna_ensure_property(), RNA_property_array_check(), rna_property_boolean_get_default_array_values(), and RNA_property_type().
Referenced by nlaevalchan_get_default_values(), RNA_property_boolean_get_default_index(), and RNA_property_reset().
|
static |
Definition at line 2409 of file rna_access.c.
References BoolPropertyRNA::defaultarray, BoolPropertyRNA::defaultvalue, length(), BoolPropertyRNA::property, ptr, RNA_property_array_length(), rna_property_boolean_fill_default_array_values(), and PropertyRNA::totarraylength.
Referenced by RNA_parameter_list_create(), RNA_property_boolean_get_array(), and RNA_property_boolean_get_default_array().
| bool RNA_property_boolean_get_default_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 2583 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_BOOLEAN, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_boolean_get_default_array(), and RNA_property_type().
Referenced by RNA_property_reset().
| bool RNA_property_boolean_get_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 2453 of file rna_access.c.
References BLI_assert, ELEM, len, MEM_freeN, MEM_mallocN, PROP_BOOLEAN, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_boolean_get_array(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), dtar_get_prop_val(), menu_search_exec_fn(), pose_propagate_get_refVal(), pyrna_array_index(), RNA_property_as_string(), ui_but_value_get(), ui_selectcontext_apply(), ui_selectcontext_begin(), uiItemFullR(), and uiTemplateLayers().
| void RNA_property_boolean_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| bool | value | ||
| ) |
Definition at line 2358 of file rna_access.c.
References BLI_assert, ELEM, PropertyRNA::flag, IDPropertyTemplate::i, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Int, IDP_INT, IDP_New(), PROP_BOOLEAN, PROP_EDITABLE, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_type(), RNA_struct_idprops(), BoolPropertyRNA::set, and BoolPropertyRNA::set_ex.
Referenced by average_tracks_invoke(), bake_set_props(), BKE_animsys_write_to_rna_path(), collection_isolate_invoke(), curve_draw_exec_precalc(), ED_object_add_generic_get_opts(), edbm_dissolve_mode_exec(), edbm_point_normals_modal(), file_browse_invoke(), fileselect_ensure_updated_file_params(), gesture_modal_state_to_operator(), gizmo2d_xform_setup(), image_open_invoke(), image_save_as_invoke(), initTransform(), initTransInfo(), menu_search_exec_fn(), outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), outliner_object_set_flag_recursive_fn(), pose_slide_apply_props(), pyrna_py_to_prop(), RNA_boolean_set(), RNA_property_boolean_set_array(), RNA_property_reset(), rna_raw_access(), save_set_compress(), saveTransform(), sequencer_add_image_strip_invoke(), sequencer_add_movie_strip_invoke(), ui_but_value_set(), ui_selectcontext_apply(), uv_from_view_invoke(), view3d_cursor3d_invoke(), WIDGETGROUP_xform_cage_setup(), WM_generic_select_modal(), wm_open_init_load_ui(), wm_open_init_use_scripts(), wm_open_mainfile_check(), and wm_save_mainfile_invoke().
| void RNA_property_boolean_set_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const bool * | values | ||
| ) |
Definition at line 2482 of file rna_access.c.
References IDPropertyTemplate::array, PropertyRNA::arraydimension, BLI_assert, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Array, IDP_ARRAY, IDP_Int, IDP_INT, IDP_New(), IDPropertyTemplate::len, IDProperty::len, PROP_BOOLEAN, PROP_EDITABLE, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_boolean_set(), RNA_property_type(), RNA_struct_idprops(), BoolPropertyRNA::setarray, BoolPropertyRNA::setarray_ex, PropertyRNA::totarraylength, and IDPropertyTemplate::type.
Referenced by gizmo2d_xform_setup(), gizmogroup_init_properties_from_twtype(), prop_subscript_ass_array_slice(), pyrna_py_to_array(), RNA_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_reset(), rna_raw_access(), saveTransform(), ui_selectcontext_apply(), WIDGETGROUP_gizmo_invoke_prepare(), and WIDGETGROUP_xform_cage_setup().
| void RNA_property_boolean_set_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index, | ||
| bool | value | ||
| ) |
Definition at line 2530 of file rna_access.c.
References BLI_assert, ELEM, len, MEM_freeN, MEM_mallocN, PROP_BOOLEAN, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_boolean_get_array(), RNA_property_boolean_set_array(), and RNA_property_type().
Referenced by BKE_animsys_write_to_rna_path(), bool_set_index(), handle_layer_buttons(), menu_search_exec_fn(), pyrna_py_to_prop_array_index(), RNA_property_reset(), ui_but_value_set(), ui_layer_but_cb(), and ui_selectcontext_apply().
| bool RNA_property_builtin | ( | PropertyRNA * | prop | ) |
Definition at line 1208 of file rna_access.c.
References PROP_INTERN_BUILTIN, and rna_ensure_property().
Referenced by pyrna_srna_contains_pointer_prop_srna().
| void RNA_property_collection_add | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 3966 of file rna_access.c.
References BLI_assert, PointerRNA::data, IDProperty::flag, PropertyRNA::flag, FUNC_USE_CONTEXT, PropertyRNA::identifier, StructRNA::identifier, IDP_AddToGroup(), IDP_AppendArray(), IDP_FLAG_OVERRIDELIBRARY_LOCAL, IDP_GetIndexArray(), IDP_GROUP, IDP_New(), IDP_NewIDPArray(), CollectionPropertyRNA::item_type, IDProperty::len, MEM_freeN, NULL, params, PROP_COLLECTION, PROP_IDPROPERTY, property_collection_liboverride_editable(), ptr, RNA_function_call(), rna_idproperty_check(), rna_idproperty_touch(), RNA_parameter_list_create(), RNA_parameter_list_free(), rna_pointer_inherit_id(), RNA_property_type(), RNA_struct_idprops(), and PointerRNA::type.
Referenced by file_sfile_to_operator_ex(), pyrna_prop_collection_idprop_add(), pyrna_py_to_prop(), and RNA_collection_add().
| int RNA_property_collection_assign_int | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const int | key, | ||
| const PointerRNA * | assign_ptr | ||
| ) |
Definition at line 4309 of file rna_access.c.
References CollectionPropertyRNA::assignint, BLI_assert, PROP_COLLECTION, ptr, rna_ensure_property(), and RNA_property_type().
Referenced by pyrna_prop_collection_ass_subscript_int().
| void RNA_property_collection_begin | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| CollectionPropertyIterator * | iter | ||
| ) |
Definition at line 3816 of file rna_access.c.
References CollectionPropertyRNA::begin, BLI_assert, PropertyRNA::flag, IDP_IDPArray, CollectionPropertyIterator::idprop, IDProperty::len, NULL, CollectionPropertyIterator::parent, CollectionPropertyIterator::prop, PROP_COLLECTION, PROP_IDPROPERTY, ptr, rna_idproperty_check(), rna_iterator_array_begin(), rna_property_collection_get_idp(), RNA_property_type(), and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_bool(), pyrna_prop_collection_iter_CreatePyObject(), pyrna_prop_collection_subscript_slice(), RNA_collection_begin(), RNA_property_as_string(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string_index(), RNA_property_collection_raw_array(), RNA_struct_equals(), RNA_struct_override_matches(), and rna_struct_update_when_changed().
| void RNA_property_collection_clear | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 4157 of file rna_access.c.
References BLI_assert, IDP_FLAG_OVERRIDELIBRARY_LOCAL, IDP_IDPArray, IDP_ResizeIDPArray(), len, IDProperty::len, PROP_COLLECTION, property_collection_liboverride_editable(), ptr, rna_idproperty_check(), rna_idproperty_touch(), and RNA_property_type().
Referenced by file_sfile_to_operator_ex(), pyrna_prop_collection_idprop_clear(), and RNA_collection_clear().
| void RNA_property_collection_end | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 3891 of file rna_access.c.
References CollectionPropertyRNA::end, CollectionPropertyIterator::idprop, CollectionPropertyIterator::prop, rna_ensure_property(), and rna_iterator_array_end().
Referenced by pyrna_prop_collection_bool(), pyrna_prop_collection_iter_dealloc(), pyrna_prop_collection_subscript_slice(), RNA_property_as_string(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string_index(), RNA_property_collection_raw_array(), RNA_struct_equals(), RNA_struct_override_matches(), and rna_struct_update_when_changed().
|
static |
Definition at line 3807 of file rna_access.c.
References PointerRNA::data, CollectionPropertyRNA::item_type, CollectionPropertyIterator::parent, CollectionPropertyIterator::prop, CollectionPropertyIterator::ptr, rna_iterator_array_get(), rna_pointer_inherit_id(), and PointerRNA::type.
Referenced by RNA_property_collection_begin(), and RNA_property_collection_next().
| int RNA_property_collection_length | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3903 of file rna_access.c.
References BLI_assert, IDProperty::len, length(), CollectionPropertyRNA::length, PROP_COLLECTION, ptr, rna_idproperty_check(), RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_type(), and CollectionPropertyIterator::valid.
Referenced by foreach_parse_args(), outliner_add_element(), pyrna_prop_collection_ass_subscript(), pyrna_prop_collection_ass_subscript_int(), pyrna_prop_collection_length(), pyrna_prop_collection_subscript(), pyrna_prop_collection_subscript_int(), RNA_collection_length(), sequencer_add_image_strip_calculate_length(), sequencer_add_movie_strip_exec(), sequencer_add_sound_strip_exec(), sequencer_change_path_exec(), uiDefAutoButR(), uilist_filter_items_default(), uiTemplateList(), WM_gesture_lasso_path_to_array(), wm_lib_relocate_exec_do(), and wm_link_append_exec().
| int RNA_property_collection_lookup_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PointerRNA * | t_ptr | ||
| ) |
Definition at line 4190 of file rna_access.c.
References BLI_assert, PointerRNA::data, PROP_COLLECTION, CollectionPropertyIterator::ptr, ptr, RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_type(), and CollectionPropertyIterator::valid.
| int RNA_property_collection_lookup_int | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | key, | ||
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 4212 of file rna_access.c.
References BLI_assert, CollectionPropertyRNA::lookupint, PROP_COLLECTION, CollectionPropertyIterator::ptr, ptr, rna_ensure_property(), RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_type(), and CollectionPropertyIterator::valid.
Referenced by node_composit_buts_file_output_ex(), open_exec(), outliner_add_element(), paint_exec(), paint_stroke_exec(), pyrna_prop_collection_subscript_int(), rna_idp_path(), rna_path_parse_collection_key(), and rna_porperty_override_collection_subitem_lookup().
| int RNA_property_collection_lookup_string | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const char * | key, | ||
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 4299 of file rna_access.c.
References ptr, and RNA_property_collection_lookup_string_index().
Referenced by bpy_types_module_getattro(), jump_to_target_button(), pyrna_prop_collection_contains(), pyrna_prop_collection_get(), pyrna_prop_collection_subscript_str(), rna_path_parse_collection_key(), rna_porperty_override_collection_subitem_lookup(), RNA_struct_find_property(), and ui_but_string_set().
| int RNA_property_collection_lookup_string_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const char * | key, | ||
| PointerRNA * | r_ptr, | ||
| int * | r_index | ||
| ) |
Definition at line 4245 of file rna_access.c.
References BLI_assert, PointerRNA::data, CollectionPropertyRNA::lookupstring, MEM_freeN, StructRNA::nameproperty, PROP_COLLECTION, CollectionPropertyIterator::ptr, ptr, rna_ensure_property(), RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_collection_next(), RNA_property_string_get_alloc(), RNA_property_type(), STREQ, PointerRNA::type, and CollectionPropertyIterator::valid.
Referenced by RNA_property_collection_lookup_string().
| bool RNA_property_collection_move | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | key, | ||
| int | pos | ||
| ) |
Definition at line 4114 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, IDP_FLAG_OVERRIDELIBRARY_LOCAL, IDP_IDPArray, len, IDProperty::len, pos, PROP_COLLECTION, PROP_IDPROPERTY, property_collection_liboverride_editable(), ptr, rna_idproperty_check(), and RNA_property_type().
Referenced by pyrna_prop_collection_idprop_move().
| void RNA_property_collection_next | ( | CollectionPropertyIterator * | iter | ) |
Definition at line 3850 of file rna_access.c.
References CollectionPropertyIterator::idprop, CollectionPropertyRNA::next, CollectionPropertyIterator::prop, rna_ensure_property(), rna_iterator_array_next(), rna_property_collection_get_idp(), and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_iter_next(), pyrna_prop_collection_subscript_slice(), RNA_property_as_string(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string_index(), RNA_property_collection_skip(), RNA_struct_equals(), RNA_struct_override_matches(), and rna_struct_update_when_changed().
| int RNA_property_collection_raw_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PropertyRNA * | itemprop, | ||
| RawArray * | array | ||
| ) |
Definition at line 4334 of file rna_access.c.
References array< T, alignment >::array(), CollectionPropertyIterator::array, BLI_assert, PointerRNA::data, PropertyRNA::flag_internal, if(), CollectionPropertyIterator::internal, NULL, PROP_COLLECTION, PROP_INTERN_RAW_ACCESS, PROP_INTERN_RAW_ARRAY, CollectionPropertyIterator::ptr, ptr, PropertyRNA::rawoffset, PropertyRNA::rawtype, RNA_property_collection_begin(), RNA_property_collection_end(), RNA_property_editable(), RNA_property_type(), and CollectionPropertyIterator::valid.
Referenced by rna_raw_access().
| int RNA_property_collection_raw_get | ( | ReportList * | reports, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | propname, | ||
| void * | array, | ||
| RawPropertyType | type, | ||
| int | len | ||
| ) |
Definition at line 4799 of file rna_access.c.
References len, ptr, rna_raw_access(), and type.
Referenced by foreach_getset().
| int RNA_property_collection_raw_set | ( | ReportList * | reports, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | propname, | ||
| void * | array, | ||
| RawPropertyType | type, | ||
| int | len | ||
| ) |
Definition at line 4810 of file rna_access.c.
References len, ptr, rna_raw_access(), and type.
Referenced by foreach_getset().
| bool RNA_property_collection_remove | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | key | ||
| ) |
Definition at line 4049 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, FUNC_USE_CONTEXT, PropertyRNA::identifier, StructRNA::identifier, IDP_FLAG_OVERRIDELIBRARY_LOCAL, IDP_IDPArray, IDP_ResizeIDPArray(), len, IDProperty::len, NULL, params, PROP_COLLECTION, PROP_IDPROPERTY, property_collection_liboverride_editable(), ptr, RNA_function_call(), rna_idproperty_check(), RNA_parameter_list_create(), RNA_parameter_list_free(), RNA_property_type(), and PointerRNA::type.
Referenced by pyrna_prop_collection_idprop_remove().
| void RNA_property_collection_skip | ( | CollectionPropertyIterator * | iter, |
| int | num | ||
| ) |
Definition at line 3866 of file rna_access.c.
References CollectionPropertyIterator::array, PropertyRNA::flag_internal, CollectionPropertyIterator::idprop, CollectionPropertyIterator::internal, CollectionPropertyIterator::prop, PROP_INTERN_RAW_ARRAY, CollectionPropertyRNA::property, ArrayIterator::ptr, rna_ensure_property(), RNA_property_collection_next(), and CollectionPropertyIterator::valid.
Referenced by pyrna_prop_collection_subscript_slice().
| bool RNA_property_collection_type_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PointerRNA * | r_ptr | ||
| ) |
Definition at line 4326 of file rna_access.c.
References BLI_assert, PROP_COLLECTION, ptr, rna_ensure_property(), RNA_property_type(), and PointerRNA::type.
Referenced by pyrna_dir_members_py(), pyrna_prop_collection_getattro(), pyrna_prop_collection_setattro(), pyrna_prop_dir(), pyrna_prop_str(), pyrna_py_to_prop(), and rna_path_parse_collection_key().
| const char* RNA_property_description | ( | PropertyRNA * | prop | ) |
Definition at line 1150 of file rna_access.c.
References rna_ensure_property_description(), and TIP_.
Referenced by button_matches_search_filter(), uiItemMenuEnumR_prop(), and uiLayoutListBox().
| bool RNA_property_editable | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop_orig | ||
| ) |
Definition at line 2073 of file rna_access.c.
References PropertyRNA::editable, PropertyRNA::flag, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, PointerRNA::owner_id, PROP_EDITABLE, PROP_LIB_EXCEPTION, PROP_REGISTER, ptr, rna_ensure_property(), and RNA_property_overridable_get().
Referenced by assign_default_button_exec(), assign_default_button_poll(), copy_to_selected_button(), datadropper_init(), depthdropper_init(), driverdropper_init(), eyedropper_init(), id_single_user(), pyrna_struct_is_property_readonly(), reset_default_button_exec(), reset_default_button_poll(), RNA_property_collection_raw_array(), RNA_property_copy(), rna_raw_access(), RNA_struct_override_matches(), template_ID(), template_ID_tabs(), template_search_buttons(), ui_but_string_set(), ui_but_value_set(), ui_selectcontext_begin(), uiTemplateIconView(), and unset_property_button_exec().
| bool RNA_property_editable_flag | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2132 of file rna_access.c.
References PropertyRNA::editable, PropertyRNA::flag, PROP_EDITABLE, ptr, and rna_ensure_property().
Referenced by mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), pyrna_prop_array_ass_subscript(), pyrna_struct_setattro(), and RNA_property_override_library_status().
| bool RNA_property_editable_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 2143 of file rna_access.c.
References BLI_assert, PropertyRNA::editable, PropertyRNA::flag, id, ID_IS_LINKED, PropertyRNA::itemeditable, PointerRNA::owner_id, PROP_EDITABLE, PROP_LIB_EXCEPTION, ptr, and rna_ensure_property().
| bool RNA_property_editable_info | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const char ** | r_info | ||
| ) |
Version of RNA_property_editable that tries to return additional info in r_info that can be exposed in UI.
Definition at line 2092 of file rna_access.c.
References PropertyRNA::editable, PropertyRNA::flag, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, N_, PointerRNA::owner_id, PROP_EDITABLE, PROP_LIB_EXCEPTION, PROP_REGISTER, ptr, rna_ensure_property(), and RNA_property_overridable_get().
Referenced by ui_def_but_rna().
| int RNA_property_enum_bitflag_identifiers | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| const char ** | identifier | ||
| ) |
Definition at line 2024 of file rna_access.c.
References C, free(), MEM_freeN, NULL, ptr, result, RNA_enum_bitflag_identifiers(), and RNA_property_enum_items().
Referenced by pyrna_enum_to_py().
| int RNA_property_enum_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3543 of file rna_access.c.
References BLI_assert, EnumPropertyRNA::defaultvalue, EnumPropertyRNA::get, EnumPropertyRNA::get_ex, IDP_Int, PROP_ENUM, ptr, rna_idproperty_check(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), area_split_invoke(), area_split_modal(), BKE_animsys_read_from_rna_path(), brush_select_exec(), button2d_draw_intern(), UnitConverter::calculate_scale(), data_transfer_check(), delete_key_exec(), dtar_get_prop_val(), ED_object_add_generic_get_opts(), edbm_bevel_update_status_text(), edbm_sort_elements_exec(), DocumentExporter::exportCurrentScene(), file_select_use_default_display_type(), file_select_use_default_sort_type(), fileselect_ensure_updated_file_params(), gesture_modal_state_from_operator(), get_enum_identifier(), gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_refresh(), initTransform(), initTransInfo(), keyingset_get_from_op_with_error(), make_override_library_exec(), menu_items_from_ui_create(), new_node_tree_exec(), node_composit_buts_viewlayers(), node_file_output_socket_draw(), object_data_instance_add_exec(), object_mode_set_exec(), object_origin_set_exec(), path_select_params_from_op(), pose_propagate_get_refVal(), poselib_move_exec(), poselib_remove_exec(), pyrna_driver_get_variable_value(), pyrna_prop_to_py(), pyrna_rotation_euler_order_get(), region_toggle_exec(), RNA_enum_get(), RNA_enum_is_equal(), RNA_property_as_string(), saveTransform(), select_linked_delimit_default_from_op(), setting_get_rna_values(), snap_gizmo_snap_elements(), space_context_cycle_invoke(), space_type_set_or_cycle_exec(), ui_but_menu_step(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), UI_but_string_info_get(), ui_but_update_ex(), ui_but_value_get(), ui_but_value_set(), ui_def_but_rna(), ui_item_enum_expand_handle(), ui_selectcontext_apply(), ui_selectcontext_begin(), ui_tooltip_data_from_tool(), uiItemFullR(), uiTemplateIconView(), view3d_interactive_add_begin(), and wm_stereo3d_set_properties().
| int RNA_property_enum_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3592 of file rna_access.c.
References BLI_assert, EnumPropertyRNA::defaultvalue, PROP_ENUM, rna_ensure_property(), and RNA_property_type().
Referenced by bpy_prop_enum_get_fn(), nlaevalchan_get_default_values(), and RNA_property_reset().
| bool RNA_property_enum_identifier | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| const char ** | identifier | ||
| ) |
Definition at line 1925 of file rna_access.c.
References C, free(), MEM_freeN, NULL, ptr, result, RNA_enum_identifier(), and RNA_property_enum_items().
Referenced by bake_init_api_data(), get_enum_identifier(), new_node_tree_exec(), node_composit_buts_viewlayers(), pyrna_enum_to_py(), and RNA_property_as_string().
| bool RNA_property_enum_item_from_value | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| EnumPropertyItem * | r_item | ||
| ) |
Definition at line 1980 of file rna_access.c.
References C, free(), MEM_freeN, NULL, ptr, result, RNA_enum_from_value(), and RNA_property_enum_items().
Referenced by RNA_property_enum_item_from_value_gettexted().
| bool RNA_property_enum_item_from_value_gettexted | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| EnumPropertyItem * | r_item | ||
| ) |
Definition at line 2008 of file rna_access.c.
References BLT_pgettext(), BLT_translate_iface(), C, PropertyRNA::flag, EnumPropertyItem::name, PROP_ENUM_NO_TRANSLATE, ptr, result, RNA_property_enum_item_from_value(), and PropertyRNA::translation_context.
Referenced by menu_items_from_ui_create_item_from_button(), and ui_but_update_ex().
| void RNA_property_enum_items | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const EnumPropertyItem ** | r_item, | ||
| int * | r_totitem, | ||
| bool * | r_free | ||
| ) |
Definition at line 1657 of file rna_access.c.
References C, ptr, and RNA_property_enum_items_ex().
Referenced by GIZMO_GT_snap_3d(), menu_items_from_ui_create(), pyrna_enum_as_string(), pyrna_prop_to_enum_bitfield(), RNA_enum_is_equal(), RNA_property_as_string(), RNA_property_enum_bitflag_identifiers(), RNA_property_enum_identifier(), RNA_property_enum_item_from_value(), RNA_property_enum_items_gettexted(), RNA_property_enum_name(), RNA_property_enum_step(), RNA_property_enum_value(), space_type_set_or_cycle_exec(), ui_but_event_property_operator_string(), ui_def_but_rna(), ui_icon_view_menu_cb(), ui_menu_enumpropname(), uiItemEnumO_string(), uiItemEnumR_string_prop(), and uiTemplateIconView().
| void RNA_property_enum_items_ex | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const bool | use_static, | ||
| const EnumPropertyItem ** | r_item, | ||
| int * | r_totitem, | ||
| bool * | r_free | ||
| ) |
Definition at line 1614 of file rna_access.c.
References BLI_assert, C, PropertyRNA::flag, StructRNA::flag, EnumPropertyItem::identifier, EnumPropertyRNA::item, EnumPropertyRNA::item_fn, NULL, PointerRNA::owner_id, PROP_ENUM_NO_CONTEXT, ptr, rna_ensure_property(), STRUCT_NO_CONTEXT_WITHOUT_OWNER_ID, EnumPropertyRNA::totitem, and PointerRNA::type.
Referenced by pyrna_enum_to_py(), and RNA_property_enum_items().
| void RNA_property_enum_items_gettexted | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const EnumPropertyItem ** | r_item, | ||
| int * | r_totitem, | ||
| bool * | r_free | ||
| ) |
Definition at line 1722 of file rna_access.c.
References C, ptr, and RNA_property_enum_items().
Referenced by button_matches_search_filter(), operator_enum_search_update_fn(), UI_but_string_info_get(), ui_def_but_rna__menu(), ui_item_enum_expand_exec(), ui_item_rna_size(), uiItemsEnumR(), and uiItemsFullEnumO().
| void RNA_property_enum_items_gettexted_all | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const EnumPropertyItem ** | r_item, | ||
| int * | r_totitem, | ||
| bool * | r_free | ||
| ) |
Definition at line 1738 of file rna_access.c.
References BLI_assert, C, PropertyRNA::flag, StructRNA::flag, free(), EnumPropertyItem::identifier, EnumPropertyRNA::item, EnumPropertyRNA::item_fn, MEM_freeN, MEM_mallocN, EnumPropertyItem::name, NULL, PointerRNA::owner_id, PROP_ENUM_NO_CONTEXT, ptr, rna_ensure_property(), STREQ, STRUCT_NO_CONTEXT_WITHOUT_OWNER_ID, EnumPropertyRNA::totitem, and PointerRNA::type.
Referenced by ui_item_enum_expand_exec(), and uiItemsFullEnumO().
| bool RNA_property_enum_name | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| const char ** | name | ||
| ) |
Definition at line 1943 of file rna_access.c.
References C, free(), MEM_freeN, NULL, ptr, result, RNA_enum_name(), and RNA_property_enum_items().
Referenced by node_file_output_socket_draw(), RNA_property_enum_name_gettexted(), ui_but_string_get_dynamic(), and ui_but_string_get_ex().
| bool RNA_property_enum_name_gettexted | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | value, | ||
| const char ** | name | ||
| ) |
Definition at line 1962 of file rna_access.c.
References BLT_pgettext(), BLT_translate_iface(), C, PropertyRNA::flag, PROP_ENUM_NO_TRANSLATE, ptr, result, RNA_property_enum_name(), and PropertyRNA::translation_context.
Referenced by edbm_bevel_update_status_text().
| void RNA_property_enum_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | value | ||
| ) |
Definition at line 3562 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, IDPropertyTemplate::i, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Int, IDP_INT, IDP_New(), PROP_EDITABLE, PROP_ENUM, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_type(), RNA_struct_idprops(), EnumPropertyRNA::set, and EnumPropertyRNA::set_ex.
Referenced by area_split_invoke(), area_split_modal(), bake_set_props(), BKE_animsys_write_to_rna_path(), curve_draw_exec_precalc(), data_transfer_check(), ED_object_add_generic_get_opts(), DocumentImporter::finish(), gesture_modal_state_to_operator(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), mathutils_rna_vector_set(), menu_search_exec_fn(), object_origin_set_exec(), operator_enum_search_exec_fn(), path_select_params_from_op(), pyrna_py_to_prop(), RNA_enum_set(), RNA_enum_set_identifier(), RNA_property_reset(), saveTransform(), select_linked_delimit_default_from_op(), space_context_cycle_invoke(), space_type_set_or_cycle_exec(), ui_but_string_set(), ui_but_value_set(), ui_item_enum_expand_handle(), ui_selectcontext_apply(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemsFullEnumO_items(), WIDGETGROUP_gizmo_invoke_prepare(), and WIDGETGROUP_navigate_setup().
| int RNA_property_enum_step | ( | const bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | from_value, | ||
| int | step | ||
| ) |
Get the value of the item that is step items away from from_value.
| from_value | Item value to start stepping from. |
| step | Absolute value defines step size, sign defines direction. E.g to get the next item, pass 1, for the previous -1. |
Definition at line 3608 of file rna_access.c.
References C, free(), MEM_freeN, mod_i(), ptr, RNA_enum_from_value(), RNA_property_enum_items(), and EnumPropertyItem::value.
Referenced by space_context_cycle_invoke(), and ui_but_menu_step().
| bool RNA_property_enum_value | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | identifier, | ||
| int * | r_value | ||
| ) |
Definition at line 1801 of file rna_access.c.
References C, free(), MEM_freeN, NULL, ptr, RNA_enum_from_identifier(), RNA_property_enum_items(), and EnumPropertyItem::value.
Referenced by pyrna_string_to_enum(), RNA_enum_set_identifier(), and ui_but_string_set().
| int RNA_property_flag | ( | PropertyRNA * | prop | ) |
Definition at line 1192 of file rna_access.c.
References PropertyRNA::flag, and rna_ensure_property().
Referenced by bpy_class_validate_recursive(), bpy_prop_enum_itemf_fn(), id_search_cb(), id_search_cb_tagged(), nlaevalchan_detect_mix_mode(), operator_last_properties_init_impl(), outliner_add_element(), py_to_array(), pyrna_enum_to_py(), pyrna_math_object_from_array(), pyrna_param_to_py(), pyrna_prop_collection_type_check(), pyrna_prop_CreatePyObject(), pyrna_py_to_prop(), pyrna_struct_is_property_hidden(), RNA_pointer_as_string_keywords_ex(), RNA_property_as_string(), RNA_property_is_unlink(), template_ID(), ui_but_is_pushed_ex(), ui_but_update_ex(), ui_but_value_set(), ui_item_enum_expand_elem_exec(), ui_layout_operator_properties_only_booleans(), ui_multibut_states_create(), ui_rna_collection_search_update_fn(), ui_rna_is_userdef(), ui_tooltip_data_from_button(), uiDefAutoButR(), uiDefAutoButsRNA(), uiItemFullR(), validate_array(), validate_array_length(), WM_gizmo_properties_reset(), WM_operator_check_ui_empty(), and WM_operator_properties_reset().
| int RNA_property_float_clamp | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float * | value | ||
| ) |
Definition at line 1525 of file rna_access.c.
References max, min, ptr, and RNA_property_float_range().
Referenced by BKE_animsys_write_to_rna_path(), mathutils_rna_vector_set_index(), pyrna_py_to_prop(), pyrna_py_to_prop_array_index(), and RNA_property_float_set().
|
static |
Definition at line 3006 of file rna_access.c.
References MIN2.
Referenced by RNA_property_float_get_default_array(), and rna_property_float_get_default_array_values().
| float RNA_property_float_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2941 of file rna_access.c.
References BLI_assert, FloatPropertyRNA::defaultvalue, FloatPropertyRNA::get, FloatPropertyRNA::get_ex, IDP_Double, IDP_Float, IDP_FLOAT, PROP_FLOAT, ptr, rna_idproperty_check(), RNA_property_array_check(), RNA_property_type(), and IDProperty::type.
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), UnitConverter::calculate_scale(), cube_project_exec(), decimate_draw_status_header(), depthdropper_init(), drw_uniform_property_lookup(), dtar_get_prop_val(), edbm_select_similar_exec(), edbm_tris_convert_to_quads_exec(), gizmo_dial_exit(), gizmo_spin_prop_angle_get(), graphkeys_decimate_modal(), graphkeys_decimate_modal_update(), initTransInfo(), interactive_value_init_from_property(), lookup_property(), object_warp_verts_exec(), pose_propagate_get_refVal(), pose_slide_apply_props(), pyrna_prop_to_py(), radial_control_invoke(), radial_control_paint_tex(), RNA_float_get(), RNA_property_as_string(), RNA_property_assign_default(), RNA_property_float_get_array(), rna_raw_access(), saveTransform(), setting_get_rna_values(), ui_but_value_get(), ui_selectcontext_begin(), ui_tooltip_data_from_button(), vieworbit_exec(), and WM_gizmo_target_property_float_get().
| void RNA_property_float_get_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float * | values | ||
| ) |
Definition at line 3033 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, PropertyRNA::flag, float(), FloatPropertyRNA::getarray, FloatPropertyRNA::getarray_ex, IDP_Array, IDP_FLOAT, IDProperty::len, PROP_FLOAT, PROP_IDPROPERTY, ptr, rna_idproperty_check(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_float_get(), rna_property_float_get_default_array_values(), RNA_property_type(), and IDProperty::subtype.
Referenced by add_primitive_cube_gizmo_exec(), drw_uniform_property_lookup(), ED_object_add_generic_get_opts(), edbm_extrude_repeat_exec(), edbm_point_normals_modal(), eyedropper_color_set(), eyedropper_init(), gizmo_bisect_prop_angle_get(), gizmo_bisect_prop_angle_set(), gizmo_bisect_prop_depth_get(), gizmo_bisect_prop_depth_set(), gizmo_bisect_prop_translate_get(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_placement_update_from_op(), gizmo_mesh_spin_redo_setup(), gizmo_mesh_spin_redo_update_from_op(), gizmo_placement_prop_matrix_get(), gizmo_spin_prop_axis_angle_get(), gizmo_spin_prop_axis_angle_set(), gizmo_spin_prop_depth_get(), gizmo_spin_prop_depth_set(), gizmo_spin_prop_translate_get(), idp_snap_point_from_gizmo_ex(), initTransInfo(), lookup_property(), mathutils_rna_matrix_get(), mathutils_rna_vector_get(), mesh_bisect_exec(), object_warp_verts_exec(), prop_subscript_ass_array_slice(), pyprop_array_foreach_getset(), pyrna_array_contains_py(), pyrna_math_object_from_array(), pyrna_prop_array_subscript_slice(), radial_control_modal(), radial_control_paint_cursor(), radial_control_paint_tex(), radial_control_set_initial_mouse(), rna_array_as_string_alloc(), RNA_float_get_array(), RNA_property_float_get_array_range(), RNA_property_float_get_index(), RNA_property_float_set_index(), rna_raw_access(), setting_get_rna_values(), ui_block_colorpicker(), ui_but_copy_numeric_array(), ui_but_v3_get(), ui_colorpicker_rgba_update_cb(), ui_do_but_COLOR(), uiTemplateColorPicker(), and WM_gizmo_target_property_float_get_array().
| void RNA_property_float_get_array_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float | values[2] | ||
| ) |
Definition at line 3071 of file rna_access.c.
References MAX2, MEM_freeN, MEM_mallocN, MIN2, ptr, RNA_property_array_length(), and RNA_property_float_get_array().
Referenced by ui_but_range_set_soft().
| float RNA_property_float_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3216 of file rna_access.c.
References BLI_assert, FloatPropertyRNA::defaultvalue, IDP_Double, IDP_DOUBLE, IDP_GetPropertyTypeFromGroup(), PropertyRNA::magic, PROP_FLOAT, rna_ensure_property(), rna_idproperty_ui(), RNA_MAGIC, RNA_property_array_check(), and RNA_property_type().
Referenced by nlaevalchan_get_default_values(), RNA_property_reset(), ui_button_value_default(), and WM_operator_view3d_unit_defaults().
| void RNA_property_float_get_default_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float * | values | ||
| ) |
Definition at line 3249 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, FloatPropertyRNA::defaultvalue, IDP_Array, IDP_ARRAY, IDP_Double, IDP_DOUBLE, IDP_FLOAT, IDP_GetPropertyFromGroup(), IDProperty::len, length(), PropertyRNA::magic, NULL, PROP_FLOAT, ptr, rna_ensure_property(), rna_ensure_property_array_length(), rna_idproperty_ui(), RNA_MAGIC, RNA_property_array_check(), rna_property_float_fill_default_array_values(), rna_property_float_get_default_array_values(), RNA_property_type(), IDProperty::subtype, and IDProperty::type.
Referenced by nlaevalchan_get_default_values(), RNA_property_float_get_default_index(), RNA_property_reset(), ui_do_but_HSVCIRCLE(), and ui_do_but_HSVCUBE().
|
static |
Definition at line 3022 of file rna_access.c.
References FloatPropertyRNA::defaultarray, FloatPropertyRNA::defaultvalue, length(), FloatPropertyRNA::property, ptr, RNA_property_array_length(), rna_property_float_fill_default_array_values(), and PropertyRNA::totarraylength.
Referenced by RNA_parameter_list_create(), RNA_property_float_get_array(), and RNA_property_float_get_default_array().
| float RNA_property_float_get_default_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 3286 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_FLOAT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_float_get_default_array(), and RNA_property_type().
Referenced by clean_fcurve(), RNA_property_reset(), and ui_button_value_default().
| float RNA_property_float_get_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 3108 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_FLOAT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_float_get_array(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), drop_color_invoke(), dtar_get_prop_val(), mathutils_rna_vector_get_index(), pose_propagate_get_refVal(), pyrna_array_index(), RNA_property_as_string(), ui_but_copy_color(), ui_but_v3_get(), ui_but_value_get(), ui_selectcontext_begin(), ui_tooltip_data_from_button(), widget_swatch(), and WM_gizmo_target_property_float_get().
| void RNA_property_float_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float * | hardmin, | ||
| float * | hardmax | ||
| ) |
Definition at line 1426 of file rna_access.c.
References float(), FloatPropertyRNA::hardmax, FloatPropertyRNA::hardmin, IDP_Double, IDP_DOUBLE, IDP_GetPropertyTypeFromGroup(), PropertyRNA::magic, ptr, FloatPropertyRNA::range, FloatPropertyRNA::range_ex, rna_ensure_property(), rna_idproperty_ui(), and RNA_MAGIC.
Referenced by convert_item_init_float(), mathutils_rna_vector_set(), prop_subscript_ass_array_slice(), RNA_property_float_clamp(), ui_block_colorpicker(), ui_but_range_set_hard(), ui_def_but_rna(), and ui_selectcontext_apply().
| void RNA_property_float_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float | value | ||
| ) |
Definition at line 2964 of file rna_access.c.
References BLI_assert, IDPropertyTemplate::f, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Double, IDP_Float, IDP_FLOAT, IDP_New(), PROP_EDITABLE, PROP_FLOAT, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_float_clamp(), RNA_property_type(), RNA_struct_idprops(), FloatPropertyRNA::set, FloatPropertyRNA::set_ex, and IDProperty::type.
Referenced by area_split_invoke(), bake_set_props(), BKE_animsys_write_to_rna_path(), cube_project_exec(), curve_draw_exec_precalc(), decimate_mouse_update_percentage(), depthdropper_depth_set(), edbm_select_similar_exec(), edbm_spin_invoke(), DocumentImporter::finish(), gizmo_spin_prop_angle_set(), graphkeys_decimate_modal(), object_warp_verts_exec(), op_generic_value_modal(), pose_slide_apply_props(), pyrna_py_to_prop(), radial_control_set_value(), RNA_float_set(), RNA_property_float_set_array(), RNA_property_reset(), rna_raw_access(), saveTransform(), ui_but_value_set(), ui_selectcontext_apply(), WM_gizmo_target_property_float_set(), and WM_operator_view3d_unit_defaults().
| void RNA_property_float_set_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const float * | values | ||
| ) |
Definition at line 3132 of file rna_access.c.
References IDPropertyTemplate::array, PropertyRNA::arraydimension, BLI_assert, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Array, IDP_ARRAY, IDP_Double, IDP_Float, IDP_FLOAT, IDP_New(), IDPropertyTemplate::len, IDProperty::len, PROP_EDITABLE, PROP_FLOAT, PROP_IDPROPERTY, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_float_set(), RNA_property_type(), RNA_struct_idprops(), FloatPropertyRNA::setarray, FloatPropertyRNA::setarray_ex, IDProperty::subtype, PropertyRNA::totarraylength, IDPropertyTemplate::type, and IDProperty::type.
Referenced by collection_instance_add_exec(), drop_color_invoke(), ED_object_add_generic_get_opts(), edbm_extrude_repeat_exec(), edbm_point_normals_modal(), edbm_screw_invoke(), edbm_spin_invoke(), eyedropper_color_set(), gizmo2d_xform_refresh(), gizmo_bisect_prop_angle_set(), gizmo_bisect_prop_depth_set(), gizmo_bisect_prop_translate_set(), gizmo_placement_prop_matrix_set(), gizmo_ruler_invoke(), gizmo_spin_prop_axis_angle_set(), gizmo_spin_prop_depth_set(), gizmo_spin_prop_translate_set(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mesh_bisect_exec(), object_data_instance_add_exec(), object_warp_verts_exec(), prop_subscript_ass_array_slice(), pyprop_array_foreach_getset(), pyrna_py_to_array(), RNA_float_set_array(), RNA_property_float_set_index(), RNA_property_reset(), rna_raw_access(), saveTransform(), ui_but_v3_set(), view3d_ruler_add_invoke(), view3d_ruler_item_mousemove(), WIDGETGROUP_xform_cage_refresh(), and WM_gizmo_target_property_float_set_array().
| bool RNA_property_float_set_default | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float | value | ||
| ) |
Definition at line 3238 of file rna_access.c.
References IDPropertyTemplate::d, IDP_DOUBLE, NULL, ptr, and rna_idproperty_ui_set_default().
Referenced by RNA_property_assign_default().
| void RNA_property_float_set_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index, | ||
| float | value | ||
| ) |
Definition at line 3190 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_FLOAT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_float_get_array(), RNA_property_float_set_array(), and RNA_property_type().
Referenced by BKE_animsys_write_to_rna_path(), float_set_index(), mathutils_rna_vector_set_index(), pyrna_py_to_prop_array_index(), RNA_property_reset(), ui_but_set_float_array(), ui_but_v3_set(), ui_but_value_set(), ui_selectcontext_apply(), and WM_gizmo_target_property_float_set().
| void RNA_property_float_ui_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| float * | softmin, | ||
| float * | softmax, | ||
| float * | step, | ||
| float * | precision | ||
| ) |
Definition at line 1466 of file rna_access.c.
References float(), IDP_Double, IDP_DOUBLE, IDP_GetPropertyTypeFromGroup(), PropertyRNA::magic, max_ff(), min_ff(), FloatPropertyRNA::precision, ptr, FloatPropertyRNA::range, FloatPropertyRNA::range_ex, rna_ensure_property(), rna_idproperty_ui(), RNA_MAGIC, FloatPropertyRNA::softmax, FloatPropertyRNA::softmin, and FloatPropertyRNA::step.
Referenced by interactive_value_init_from_property(), radial_control_invoke(), ui_block_colorpicker(), ui_but_range_set_soft(), ui_def_but_rna(), uiTemplateColorPicker(), WIDGETGROUP_camera_refresh(), and WM_gizmo_target_property_float_range_get().
| const char* RNA_property_identifier | ( | const PropertyRNA * | prop | ) |
Definition at line 1145 of file rna_access.c.
References rna_ensure_property_identifier().
Referenced by add_driver_with_target(), ANIM_channel_draw_widgets(), average_normals_draw_check_prop(), BKE_fcurve_find_by_rna_context_ui(), bpy_class_validate_recursive(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphNodeBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_id_property(), colorband_buttons_layout(), blender::deg::RNANodeQuery::construct_node_identifier(), copy_as_driver_button_exec(), data_transfer_poll_property(), delete_key_button_exec(), dt_layers_select_itemf(), edbm_sort_elements_poll_property(), edbm_spin_poll_property(), file_browse_exec(), foreach_parse_args(), gpencil_convert_poll_property(), gpencil_cyclical_set_curve_edit_poll_property(), gpencil_subdivide_curve_edit_poll_property(), graphkeys_decimate_poll_property(), blender::deg::RNAPathKey::identifier(), image_open_draw_check_prop(), image_save_as_draw_check_prop(), insert_key_button_exec(), mass_calculate_poll_property(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), normals_tools_draw_check_prop(), operator_enum_search_update_fn(), operator_last_properties_init_impl(), outliner_operator_menu(), parent_set_poll_property(), pastebuf_match_path_property(), path_select_poll_property(), point_normals_draw_check_prop(), py_to_array_index(), pyrna_enum_to_py(), pyrna_func_call(), pyrna_prop_array_ass_subscript(), pyrna_prop_as_bytes(), pyrna_prop_path_from_id(), pyrna_prop_repr_ex(), pyrna_prop_str(), pyrna_prop_to_enum_bitfield(), pyrna_prop_validity_check(), pyrna_py_to_prop(), pyrna_pydict_to_props(), pyrna_srna_contains_pointer_prop_srna(), pyrna_struct_keyframe_delete(), pyrna_struct_keyframe_insert(), pyrna_struct_setattro(), quadriflow_poll_property(), RNA_function_call_direct_va(), RNA_function_find_parameter(), RNA_parameter_get_lookup(), RNA_parameter_set_lookup(), RNA_path_append(), RNA_path_from_ID_to_property_index(), RNA_path_from_ID_to_struct(), RNA_path_full_property_py_ex(), RNA_path_property_py(), RNA_path_struct_property_py(), RNA_pointer_as_string_id(), RNA_pointer_as_string_keywords_ex(), rna_struct_update_when_changed(), screenshot_draw_check_prop(), seq_effect_add_properties_poll(), sequencer_add_draw_check_fn(), shortcut_property_from_rna(), transform_poll_property(), ui_but_anim_decorate_update_from_flag(), ui_but_event_property_operator_string(), UI_but_online_manual_id(), UI_but_string_info_get(), ui_but_user_menu_add(), ui_but_user_menu_find(), UI_context_copy_to_selected_list(), ui_layout_introspect_button(), UI_textbutton_activate_rna(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemMenuEnumR_prop(), uiItemPointerR_prop(), uiItemsFullEnumO_items(), validate_array(), validate_array_length(), visualkey_can_use(), visualkey_get_values(), WM_gizmo_properties_reset(), WM_menu_invoke_ex(), WM_msg_publish_rna_params(), wm_msg_rna_repr(), WM_msg_subscribe_rna_params(), wm_operator_create(), and WM_operator_properties_reset().
| int RNA_property_int_clamp | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int * | value | ||
| ) |
Definition at line 1542 of file rna_access.c.
References max, min, ptr, and RNA_property_int_range().
Referenced by BKE_animsys_write_to_rna_path(), pyrna_py_to_prop(), pyrna_py_to_prop_array_index(), and RNA_property_int_set().
|
static |
Definition at line 2663 of file rna_access.c.
References MIN2.
Referenced by RNA_property_int_get_default_array(), and rna_property_int_get_default_array_values().
| int RNA_property_int_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2607 of file rna_access.c.
References BLI_assert, IntPropertyRNA::defaultvalue, IntPropertyRNA::get, IntPropertyRNA::get_ex, IDP_Int, PROP_INT, ptr, rna_idproperty_check(), RNA_property_array_check(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), bookmark_delete_exec(), drw_uniform_property_lookup(), dtar_get_prop_val(), ED_view3d_gizmo_mesh_preselect_get_active(), edbm_fill_grid_exec(), fileselect_ensure_updated_file_params(), load_data_init_from_operator(), lookup_property(), move_to_collection_exec(), move_to_collection_invoke(), pose_groups_menu_invoke(), pose_propagate_get_refVal(), pose_slide_apply_props(), pyrna_prop_to_py(), radial_control_invoke(), RNA_int_get(), RNA_property_as_string(), RNA_property_assign_default(), RNA_property_int_get_array(), rna_raw_access(), setting_get_rna_values(), ui_but_value_get(), ui_handle_list_event(), ui_selectcontext_begin(), uiTemplateList(), undo_history_exec(), WM_gesture_lasso_invoke(), WM_gesture_lines_invoke(), WM_gesture_straightline_invoke(), and WM_operator_properties_select_random_seed_increment_get().
| void RNA_property_int_get_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int * | values | ||
| ) |
Definition at line 2690 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, PropertyRNA::flag, IntPropertyRNA::getarray, IntPropertyRNA::getarray_ex, IDP_Array, IDProperty::len, PROP_IDPROPERTY, PROP_INT, ptr, rna_idproperty_check(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_int_get(), rna_property_int_get_default_array_values(), and RNA_property_type().
Referenced by area_split_invoke(), image_scale_exec(), prop_subscript_ass_array_slice(), pyprop_array_foreach_getset(), pyrna_array_contains_py(), pyrna_prop_array_subscript_slice(), rna_array_as_string_alloc(), RNA_int_get_array(), RNA_property_int_get_array_range(), RNA_property_int_get_index(), RNA_property_int_set_index(), rna_raw_access(), and setting_get_rna_values().
| void RNA_property_int_get_array_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | values[2] | ||
| ) |
Definition at line 2722 of file rna_access.c.
References MAX2, MEM_freeN, MEM_mallocN, MIN2, ptr, RNA_property_array_length(), and RNA_property_int_get_array().
Referenced by ui_but_range_set_soft().
| int RNA_property_int_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2856 of file rna_access.c.
References IntPropertyRNA::defaultvalue, IDP_GetPropertyTypeFromGroup(), IDP_Int, IDP_INT, PropertyRNA::magic, rna_ensure_property(), rna_idproperty_ui(), and RNA_MAGIC.
Referenced by nlaevalchan_get_default_values(), RNA_property_reset(), and ui_button_value_default().
| void RNA_property_int_get_default_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int * | values | ||
| ) |
Definition at line 2886 of file rna_access.c.
References PropertyRNA::arraydimension, BLI_assert, IntPropertyRNA::defaultvalue, IDP_Array, IDP_ARRAY, IDP_GetPropertyFromGroup(), IDP_Int, IDP_INT, IDProperty::len, length(), PropertyRNA::magic, NULL, PROP_INT, ptr, rna_ensure_property(), rna_ensure_property_array_length(), rna_idproperty_ui(), RNA_MAGIC, RNA_property_array_check(), rna_property_int_fill_default_array_values(), rna_property_int_get_default_array_values(), RNA_property_type(), IDProperty::subtype, and IDProperty::type.
Referenced by nlaevalchan_get_default_values(), RNA_property_int_get_default_index(), and RNA_property_reset().
|
static |
Definition at line 2679 of file rna_access.c.
References IntPropertyRNA::defaultarray, IntPropertyRNA::defaultvalue, length(), IntPropertyRNA::property, ptr, RNA_property_array_length(), rna_property_int_fill_default_array_values(), and PropertyRNA::totarraylength.
Referenced by RNA_parameter_list_create(), RNA_property_int_get_array(), and RNA_property_int_get_default_array().
| int RNA_property_int_get_default_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 2917 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_INT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_int_get_default_array(), and RNA_property_type().
Referenced by RNA_property_reset(), and ui_button_value_default().
| int RNA_property_int_get_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 2759 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_INT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_int_get_array(), and RNA_property_type().
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), BKE_animsys_read_from_rna_path(), dtar_get_prop_val(), pose_propagate_get_refVal(), pyrna_array_index(), RNA_property_as_string(), ui_but_value_get(), and ui_selectcontext_begin().
| void RNA_property_int_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int * | hardmin, | ||
| int * | hardmax | ||
| ) |
Definition at line 1335 of file rna_access.c.
References IntPropertyRNA::hardmax, IntPropertyRNA::hardmin, IDP_GetPropertyTypeFromGroup(), IDP_Int, IDP_INT, PropertyRNA::magic, ptr, IntPropertyRNA::range, IntPropertyRNA::range_ex, rna_ensure_property(), rna_idproperty_ui(), and RNA_MAGIC.
Referenced by convert_item_init_int(), prop_subscript_ass_array_slice(), RNA_property_int_clamp(), ui_but_range_set_hard(), ui_def_but_rna(), ui_handle_list_event(), and ui_selectcontext_apply().
| void RNA_property_int_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | value | ||
| ) |
Definition at line 2627 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, IDPropertyTemplate::i, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Int, IDP_INT, IDP_New(), PROP_EDITABLE, PROP_INT, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_int_clamp(), RNA_property_type(), RNA_struct_idprops(), IntPropertyRNA::set, and IntPropertyRNA::set_ex.
Referenced by bake_set_props(), BKE_animsys_write_to_rna_path(), edbm_fill_grid_exec(), pose_slide_apply_props(), pyrna_py_to_prop(), radial_control_set_value(), RNA_int_set(), RNA_property_int_set_array(), RNA_property_reset(), rna_raw_access(), ui_but_value_set(), ui_handle_list_event(), ui_selectcontext_apply(), uiTemplateList(), and WM_operator_properties_select_random_seed_increment_get().
| void RNA_property_int_set_array | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const int * | values | ||
| ) |
Definition at line 2783 of file rna_access.c.
References IDPropertyTemplate::array, PropertyRNA::arraydimension, BLI_assert, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_Array, IDP_ARRAY, IDP_Int, IDP_INT, IDP_New(), IDPropertyTemplate::len, IDProperty::len, PROP_EDITABLE, PROP_IDPROPERTY, PROP_INT, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_int_set(), RNA_property_type(), RNA_struct_idprops(), IntPropertyRNA::setarray, IntPropertyRNA::setarray_ex, PropertyRNA::totarraylength, and IDPropertyTemplate::type.
Referenced by image_scale_exec(), image_scale_invoke(), prop_subscript_ass_array_slice(), pyprop_array_foreach_getset(), pyrna_py_to_array(), RNA_int_set_array(), RNA_property_int_set_index(), RNA_property_reset(), and rna_raw_access().
| bool RNA_property_int_set_default | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | value | ||
| ) |
Definition at line 2875 of file rna_access.c.
References IDPropertyTemplate::i, IDP_INT, NULL, ptr, and rna_idproperty_ui_set_default().
Referenced by RNA_property_assign_default().
| void RNA_property_int_set_index | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value | ||
| ) |
Definition at line 2830 of file rna_access.c.
References BLI_assert, len, MEM_freeN, MEM_mallocN, PROP_INT, ptr, rna_ensure_property_array_length(), RNA_MAX_ARRAY_LENGTH, RNA_property_array_check(), RNA_property_int_get_array(), RNA_property_int_set_array(), and RNA_property_type().
Referenced by BKE_animsys_write_to_rna_path(), int_set_index(), pyrna_py_to_prop_array_index(), RNA_property_reset(), ui_but_value_set(), and ui_selectcontext_apply().
| void RNA_property_int_ui_range | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int * | softmin, | ||
| int * | softmax, | ||
| int * | step | ||
| ) |
Definition at line 1375 of file rna_access.c.
References IDP_GetPropertyTypeFromGroup(), IDP_Int, IDP_INT, PropertyRNA::magic, max_ii(), min_ii(), ptr, IntPropertyRNA::range, IntPropertyRNA::range_ex, rna_ensure_property(), rna_idproperty_ui(), RNA_MAGIC, IntPropertyRNA::softmax, IntPropertyRNA::softmin, and IntPropertyRNA::step.
Referenced by radial_control_invoke(), ui_but_range_set_soft(), and ui_def_but_rna().
| bool RNA_property_is_idprop | ( | const PropertyRNA * | prop | ) |
Definition at line 6706 of file rna_access.c.
References PropertyRNA::magic, and RNA_MAGIC.
Referenced by assign_default_button_poll(), blender::deg::DepsgraphRelationBuilder::build_driver_data(), blender::deg::DepsgraphNodeBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_id_property(), blender::deg::RNANodeQuery::construct_node_identifier(), pyrna_dir_members_rna(), RNA_property_assign_default(), UI_context_copy_to_selected_list(), and ui_popup_context_menu_for_button().
| bool RNA_property_is_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 6655 of file rna_access.c.
References IDProperty::flag, PropertyRNA::flag, PropertyRNA::identifier, IDP_FLAG_GHOST, NULL, PROP_IDPROPERTY, ptr, rna_ensure_property(), and rna_idproperty_find().
Referenced by add_driver_button_menu_invoke(), add_primitive_cube_gizmo_exec(), area_split_invoke(), average_tracks_invoke(), bake_set_props(), bookmark_delete_exec(), brush_select_exec(), button2d_draw_intern(), collection_instance_add_exec(), collection_isolate_invoke(), cube_project_exec(), curve_draw_exec_precalc(), data_transfer_poll_property(), ED_object_add_generic_get_opts(), edbm_dissolve_mode_exec(), edbm_extrude_repeat_exec(), edbm_fill_grid_exec(), edbm_screw_invoke(), edbm_select_similar_exec(), edbm_sort_elements_exec(), edbm_spin_invoke(), edbm_tris_convert_to_quads_exec(), file_browse_invoke(), gesture_modal_state_from_operator(), gizmo_dial_exit(), gpencil_convert_layer_exec(), image_new_exec(), image_scale_exec(), image_scale_invoke(), initTransform(), initTransInfo(), mesh_bisect_exec(), move_to_collection_exec(), move_to_collection_invoke(), object_data_instance_add_exec(), object_mode_set_exec(), object_origin_set_exec(), object_warp_verts_exec(), op_generic_value_invoke(), operator_last_properties_init_impl(), outliner_id_remap_invoke(), parent_set_invoke(), path_select_params_from_op(), pose_groups_menu_invoke(), poselib_move_exec(), poselib_remove_exec(), region_toggle_exec(), RNA_pointer_as_string_keywords_ex(), RNA_property_copy(), RNA_struct_property_is_set(), save_set_compress(), save_set_filepath(), saveTransform(), select_linked_delimit_default_from_op(), template_keymap_item_properties(), transformops_loopsel_hack(), ui_tooltip_data_from_tool(), undo_history_exec(), unset_property_button_exec(), uv_from_view_invoke(), view3d_cursor3d_invoke(), view3d_interactive_add_begin(), view_scrolldown_exec(), view_scrollup_exec(), vieworbit_exec(), WM_gizmo_properties_default(), wm_homefile_read_exec(), wm_keymap_item_find(), WM_menu_invoke_ex(), wm_open_init_load_ui(), wm_open_init_use_scripts(), WM_operator_properties_default(), WM_operator_properties_select_random_seed_increment_get(), wm_save_mainfile_invoke(), and wm_stereo3d_set_properties().
| bool RNA_property_is_set_ex | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| bool | use_ghost | ||
| ) |
Definition at line 6645 of file rna_access.c.
References IDProperty::flag, PropertyRNA::flag, PropertyRNA::identifier, IDP_FLAG_GHOST, NULL, PROP_IDPROPERTY, ptr, rna_ensure_property(), and rna_idproperty_find().
Referenced by fileselect_ensure_updated_file_params(), pyrna_struct_is_property_set(), RNA_struct_property_is_set_ex(), and WM_operator_view3d_unit_defaults().
| bool RNA_property_is_unlink | ( | PropertyRNA * | prop | ) |
Definition at line 6712 of file rna_access.c.
References PROP_NEVER_NULL, PROP_NEVER_UNLINK, PROP_STRING, RNA_property_flag(), and RNA_property_type().
Referenced by ui_but_add_search().
| int RNA_property_multi_array_length | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | dim | ||
| ) |
Definition at line 1241 of file rna_access.c.
References len, ptr, rna_ensure_property_multi_array_length(), and RNA_MAX_ARRAY_DIMENSION.
Referenced by pyrna_prop_array_length(), and pyrna_py_from_array_index().
| bool RNA_property_path_from_ID_check | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 2207 of file rna_access.c.
References MEM_freeN, PointerRNA::owner_id, ptr, ret, RNA_id_pointer_create(), RNA_path_from_ID_to_property(), and RNA_path_resolve().
Referenced by ui_popup_context_menu_for_button().
| void RNA_property_pointer_add | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3758 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, IDPropertyTemplate::i, PropertyRNA::identifier, StructRNA::identifier, IDP_AddToGroup(), IDP_GROUP, IDP_New(), PROP_IDPROPERTY, PROP_POINTER, ptr, rna_idproperty_check(), RNA_property_type(), RNA_struct_idprops(), and PointerRNA::type.
Referenced by RNA_pointer_add(), and RNA_property_pointer_get().
| PointerRNA RNA_property_pointer_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3641 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, PointerPropertyRNA::get, IDP_Id, PointerRNA_NULL, PROP_IDPROPERTY, PROP_POINTER, ptr, rna_idproperty_check(), rna_pointer_inherit_refine(), RNA_property_pointer_add(), RNA_property_type(), RNA_struct_is_ID(), PointerPropertyRNA::type, and PointerPropertyRNA::type_fn.
Referenced by action_new_exec(), buttons_texture_context_compute(), buttons_texture_modifier_geonodes_users_add(), datadropper_id_set(), datadropper_init(), id_search_menu(), image_open_invoke(), jump_to_target_button(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), lib_override_library_id_reset_do(), open_invoke(), outliner_add_element(), pyrna_prop_str(), pyrna_prop_to_py(), pyrna_py_to_prop(), rna_idp_path(), rna_path_parse(), RNA_pointer_get(), RNA_property_as_string(), RNA_struct_override_apply(), rna_struct_update_when_changed(), template_add_button_search_menu(), template_ID(), template_id_cb(), template_ID_tabs(), template_keymap_item_properties(), template_search_buttons(), template_search_menu(), template_texture_select(), template_texture_user_menu(), ui_but_is_pushed_ex(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), ui_def_but_rna(), ui_selectcontext_apply(), uiDefAutoButR(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorRamp(), uiTemplateColorspaceSettings(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageViews(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplateTextureShow(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), WM_gizmo_properties_default(), WM_gizmo_properties_sanitize(), wm_operator_create(), WM_operator_properties_default(), and WM_operator_properties_sanitize().
| PointerRNA RNA_property_pointer_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | UNUSEDprop | ||
| ) |
Definition at line 3749 of file rna_access.c.
References PointerRNA_NULL.
Referenced by RNA_property_reset().
| bool RNA_property_pointer_poll | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PointerRNA * | value | ||
| ) |
Definition at line 1593 of file rna_access.c.
References PropertyRNA::identifier, PointerPropertyRNA::poll, PROP_POINTER, ptr, rna_ensure_property(), rna_idproperty_check(), and PropertyRNA::type.
Referenced by datadropper_id_sample_pt(), id_search_allows_id(), and ui_rna_collection_search_update_fn().
| void RNA_property_pointer_remove | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3786 of file rna_access.c.
References BLI_assert, PropertyRNA::identifier, StructRNA::identifier, IDP_FreeFromGroup(), PROP_POINTER, ptr, rna_idproperty_check(), RNA_property_type(), RNA_struct_idprops(), and PointerRNA::type.
| void RNA_property_pointer_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| PointerRNA | ptr_value, | ||
| ReportList * | reports | ||
| ) |
Definition at line 3673 of file rna_access.c.
References BKE_reportf(), BLI_assert, PointerRNA::data, PropertyRNA::flag, IDPropertyTemplate::id, PropertyRNA::identifier, StructRNA::identifier, IDP_AssignID(), IDP_GROUP, IDP_ID, IDP_New(), IDP_ReplaceInGroup(), IDP_ReplaceInGroup_ex(), IDProperty::name, NULL, PointerRNA::owner_id, PROP_EDITABLE, PROP_ID_SELF_CHECK, PROP_NEVER_NULL, PROP_POINTER, ptr, RNA_ID, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_type(), RNA_struct_idprops(), RNA_struct_is_a(), RPT_ERROR, PointerPropertyRNA::set, IDProperty::type, PointerPropertyRNA::type, and PointerRNA::type.
Referenced by actedit_change_action(), action_new_exec(), cachefile_open_exec(), datadropper_id_set(), ED_animedit_unlink_action(), font_open_exec(), font_unlink_exec(), id_single_user(), image_new_exec(), image_open_exec(), lib_id_unlink_exec(), new_material_exec(), new_node_tree_exec(), new_texture_exec(), new_world_exec(), open_exec(), pyrna_py_to_prop(), RNA_pointer_set(), RNA_property_reset(), template_id_cb(), template_ID_set_property_exec_fn(), template_search_exec_fn(), text_new_exec(), text_open_exec(), ui_but_string_set(), and ui_selectcontext_apply().
| StructRNA* RNA_property_pointer_type | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 1567 of file rna_access.c.
References CollectionPropertyRNA::item_type, PROP_COLLECTION, PROP_POINTER, ptr, rna_ensure_property(), RNA_UnknownType, PropertyRNA::type, PointerPropertyRNA::type, and PointerPropertyRNA::type_fn.
Referenced by datadropper_init(), datadropper_poll(), blender::ed::outliner::TreeElementOverridesBase::expand(), lib_override_library_id_reset_do(), pyrna_param_to_py(), pyrna_prop_collection_type_check(), pyrna_py_to_prop(), pyrna_srna_contains_pointer_prop_srna(), rna_function_parameter_parse(), rna_property_update(), rna_raw_access(), RNA_struct_find_nested(), RNA_struct_override_apply(), search_id_collection(), template_add_button_search_menu(), template_ID_search_menu_item_tooltip(), template_search_buttons(), template_search_exec_fn(), template_search_get_searchprop(), ui_but_add_search(), ui_but_icon_extra_is_visible_search_eyedropper(), ui_but_string_get_ex(), ui_but_string_set(), ui_template_id(), uiDefAutoButR(), uiItemPointerR_prop(), uiTemplateList(), WM_gizmo_properties_default(), WM_gizmo_properties_sanitize(), WM_operator_properties_default(), and WM_operator_properties_sanitize().
| void* RNA_property_py_data_get | ( | PropertyRNA * | prop | ) |
Definition at line 1213 of file rna_access.c.
References PropertyRNA::py_data.
Referenced by bpy_prop_boolean_array_get_fn(), bpy_prop_boolean_array_set_fn(), bpy_prop_boolean_get_fn(), bpy_prop_boolean_set_fn(), bpy_prop_enum_get_fn(), bpy_prop_enum_itemf_fn(), bpy_prop_enum_set_fn(), bpy_prop_float_array_get_fn(), bpy_prop_float_array_set_fn(), bpy_prop_float_get_fn(), bpy_prop_float_set_fn(), bpy_prop_int_array_get_fn(), bpy_prop_int_array_set_fn(), bpy_prop_int_get_fn(), bpy_prop_int_set_fn(), bpy_prop_pointer_poll_fn(), bpy_prop_py_data_ensure(), bpy_prop_py_data_remove(), bpy_prop_string_get_fn(), bpy_prop_string_length_fn(), bpy_prop_string_set_fn(), and bpy_prop_update_fn().
| RawPropertyType RNA_property_raw_type | ( | PropertyRNA * | prop | ) |
Definition at line 4778 of file rna_access.c.
References PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_RAW_BOOLEAN, PROP_RAW_FLOAT, PROP_RAW_INT, PROP_RAW_UNSET, PropertyRNA::rawtype, and PropertyRNA::type.
Referenced by foreach_attr_type().
| bool RNA_property_reset | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 8030 of file rna_access.c.
References IDP_Chain::index, len, MEM_callocN, MEM_freeN, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ptr, RNA_property_array_length(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_boolean_get_default_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_enum_get_default(), RNA_property_enum_set(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_int_get_default(), RNA_property_int_get_default_array(), RNA_property_int_get_default_index(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_int_set_index(), RNA_property_pointer_get_default(), RNA_property_pointer_set(), RNA_property_string_get_default_alloc(), RNA_property_string_set(), and RNA_property_type().
Referenced by reset_default_button_exec(), WM_gizmo_properties_default(), and WM_operator_properties_default().
| void rna_property_rna_or_id_get | ( | PropertyRNA * | prop, |
| PointerRNA * | ptr, | ||
| PropertyRNAOrID * | r_prop_rna_or_id | ||
| ) |
Definition at line 553 of file rna_access.c.
References PropertyRNAOrID::array_len, arraytypemap, PointerRNA::data, IDProperty::flag, PropertyRNA::flag, PropertyRNA::getlength, PropertyRNAOrID::identifier, PropertyRNA::identifier, IDP_ARRAY, IDP_FLAG_GHOST, IDP_FreeFromGroup(), PropertyRNAOrID::idprop, PropertyRNAOrID::is_array, PropertyRNAOrID::is_idprop, PropertyRNAOrID::is_set, IDProperty::len, PropertyRNA::magic, IDProperty::name, NULL, PROP_IDPROPERTY, PropertyRNAOrID::ptr, ptr, PropertyRNAOrID::rawprop, rna_idproperty_find(), rna_idproperty_verify_valid(), RNA_MAGIC, RNA_MAX_ARRAY_DIMENSION, RNA_struct_idprops(), PropertyRNAOrID::rnaprop, IDProperty::subtype, PropertyRNA::totarraylength, IDProperty::type, and typemap.
Referenced by rna_ensure_property_realdata(), rna_idproperty_check(), RNA_property_equals(), and RNA_struct_override_matches().
| int RNA_property_string_default_length | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3518 of file rna_access.c.
References BLI_assert, StringPropertyRNA::defaultvalue, IDP_GetPropertyTypeFromGroup(), IDP_String, IDP_STRING, PropertyRNA::magic, PROP_STRING, rna_ensure_property(), rna_idproperty_ui(), RNA_MAGIC, and RNA_property_type().
Referenced by RNA_property_string_get_default_alloc().
| void RNA_property_string_get | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| char * | value | ||
| ) |
Definition at line 3310 of file rna_access.c.
References BLI_assert, StringPropertyRNA::defaultvalue, StringPropertyRNA::get, StringPropertyRNA::get_ex, IDP_String, IDP_STRING_SUB_BYTE, IDProperty::len, PROP_STRING, ptr, rna_idproperty_check(), RNA_property_type(), and IDProperty::subtype.
Referenced by bookmark_select_exec(), button2d_draw_intern(), collection_instance_add_exec(), delete_key_exec(), file_directory_new_exec(), file_operator_to_sfile(), image_new_exec(), keyingset_get_from_op_with_error(), load_data_init_from_operator(), object_data_instance_add_exec(), RNA_property_as_string(), RNA_property_string_get_alloc(), RNA_string_get(), ui_but_menu_add_path_operators(), wm_homefile_read_exec(), and WM_operator_filesel_ensure_ext_imtype().
| char* RNA_property_string_get_alloc | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| char * | fixedbuf, | ||
| int | fixedlen, | ||
| int * | r_len | ||
| ) |
Definition at line 3339 of file rna_access.c.
References BLI_assert, length(), MEM_mallocN, PROP_STRING, ptr, RNA_property_string_get(), RNA_property_string_length(), and RNA_property_type().
Referenced by file_browse_invoke(), fileselect_ensure_updated_file_params(), getname_anim_fcurve(), jump_to_target_button(), pyrna_prop_as_bytes(), pyrna_prop_to_py(), RNA_property_collection_lookup_string_index(), RNA_string_get_alloc(), RNA_struct_name_get_alloc(), template_search_textbut_width(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), and uilist_item_use_dynamic_tooltip().
| void RNA_property_string_get_default | ( | PointerRNA * | UNUSEDptr, |
| PropertyRNA * | prop, | ||
| char * | value | ||
| ) |
Definition at line 3466 of file rna_access.c.
References BLI_assert, StringPropertyRNA::defaultvalue, IDP_GetPropertyTypeFromGroup(), IDP_String, IDP_STRING, PropertyRNA::magic, PROP_STRING, rna_ensure_property(), rna_idproperty_ui(), RNA_MAGIC, and RNA_property_type().
Referenced by RNA_property_string_get_default_alloc().
| char* RNA_property_string_get_default_alloc | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| char * | fixedbuf, | ||
| int | fixedlen | ||
| ) |
Definition at line 3493 of file rna_access.c.
References BLI_assert, length(), MEM_callocN, PROP_STRING, ptr, RNA_property_string_default_length(), RNA_property_string_get_default(), and RNA_property_type().
Referenced by RNA_property_reset().
| int RNA_property_string_length | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 3375 of file rna_access.c.
References BLI_assert, StringPropertyRNA::defaultvalue, IDP_String, IDP_STRING_SUB_BYTE, IDProperty::len, StringPropertyRNA::length, StringPropertyRNA::length_ex, PROP_STRING, ptr, rna_idproperty_check(), RNA_property_type(), and IDProperty::subtype.
Referenced by button2d_draw_intern(), RNA_property_as_string(), RNA_property_string_get_alloc(), and RNA_string_length().
| int RNA_property_string_maxlength | ( | PropertyRNA * | prop | ) |
Definition at line 1561 of file rna_access.c.
References StringPropertyRNA::maxlength, and rna_ensure_property().
Referenced by pyrna_py_to_prop(), RNA_property_string_set(), and ui_def_but_rna().
| void RNA_property_string_set | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const char * | value | ||
| ) |
Definition at line 3401 of file rna_access.c.
References BLI_assert, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_AssignString(), IDP_NewString(), PROP_EDITABLE, PROP_STRING, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_string_maxlength(), RNA_property_type(), RNA_struct_idprops(), StringPropertyRNA::set, and StringPropertyRNA::set_ex.
Referenced by bake_set_props(), file_browse_exec(), file_sfile_to_operator_ex(), move_to_collection_invoke(), pyrna_py_to_prop(), RNA_property_reset(), RNA_string_set(), save_set_filepath(), sequencer_change_path_exec(), ui_but_string_set(), and WM_operator_filesel_ensure_ext_imtype().
| void RNA_property_string_set_bytes | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| const char * | value, | ||
| int | len | ||
| ) |
Definition at line 3430 of file rna_access.c.
References BLI_assert, IDProperty::data, PropertyRNA::flag, PropertyRNA::identifier, IDP_AddToGroup(), IDP_New(), IDP_ResizeArray(), IDP_STRING, IDP_STRING_SUB_BYTE, IDPropertyTemplate::len, len, IDPropertyData::pointer, PROP_BYTESTRING, PROP_EDITABLE, PROP_STRING, ptr, rna_idproperty_check(), rna_idproperty_touch(), RNA_property_subtype(), RNA_property_type(), RNA_struct_idprops(), StringPropertyRNA::set, StringPropertyRNA::set_ex, IDPropertyTemplate::str, IDPropertyTemplate::string, and IDPropertyTemplate::subtype.
Referenced by gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), and pyrna_py_to_prop().
| PropertySubType RNA_property_subtype | ( | PropertyRNA * | prop | ) |
Definition at line 1160 of file rna_access.c.
References ELEM, IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, IDP_GetPropertyTypeFromGroup(), IDP_INT, IDP_String, IDP_STRING, PropertyRNA::magic, PROP_NONE, result, rna_ensure_property(), rna_enum_property_subtype_items, RNA_enum_value_from_id(), rna_idproperty_ui(), RNA_MAGIC, IDProperty::subtype, PropertyRNA::subtype, and IDProperty::type.
Referenced by ANIM_unit_mapping_get_factor(), depthdropper_poll(), drop_color_invoke(), eyedropper_init(), file_browse_exec(), foreach_attr_type(), graph_panel_key_properties(), insert_keyframe_fcurve_value(), nlaevalchan_detect_mix_mode(), pyrna_math_object_from_array(), pyrna_param_to_py(), pyrna_prop_to_py(), pyrna_py_to_prop(), radial_control_invoke(), RNA_property_array_item_char(), RNA_property_string_set_bytes(), RNA_property_unit(), ui_apply_but_autokey(), ui_but_build_drawstr_float(), ui_but_build_drawstr_int(), ui_but_contains_password(), ui_but_copy_color(), ui_but_drag_init(), ui_but_has_array_value(), ui_but_is_color_gamma(), ui_but_is_compatible(), UI_but_is_utf8(), ui_but_menu_add_path_operators(), ui_but_paste_color(), ui_but_range_set_soft(), ui_but_string_eval_number(), ui_but_string_get_ex(), ui_but_text_password_hide(), UI_but_unit_type_get(), ui_do_but_COLOR(), ui_handle_menu_event(), ui_item_array(), ui_item_rna_is_expand(), ui_item_rna_size(), ui_item_with_label(), ui_popup_context_menu_for_button(), ui_selectcontext_apply(), ui_tooltip_data_from_button(), uiDefAutoButR(), widget_numslider(), and WM_operator_view3d_unit_defaults().
| int RNA_property_tags | ( | PropertyRNA * | prop | ) |
Get the tags set for prop as int bitfield.
Definition at line 1203 of file rna_access.c.
References rna_ensure_property(), and PropertyRNA::tags.
Referenced by ui_layout_operator_buts_poll_property().
| const char* RNA_property_translation_context | ( | const PropertyRNA * | prop | ) |
Definition at line 2063 of file rna_access.c.
References rna_ensure_property(), and PropertyRNA::translation_context.
Referenced by menu_items_from_ui_create(), UI_but_string_info_get(), ui_def_but_rna(), ui_menu_enumpropname(), and uiItemEnumR_string_prop().
| PropertyType RNA_property_type | ( | PropertyRNA * | prop | ) |
Definition at line 1155 of file rna_access.c.
References rna_ensure_property(), and PropertyRNA::type.
Referenced by BCAnimationCurve::add_value_from_rna(), ANIM_add_driver(), assign_default_button_poll(), BKE_animsys_read_from_rna_path(), BKE_animsys_write_to_rna_path(), clean_fcurve(), copy_as_driver_button_poll(), datadropper_init(), datadropper_poll(), delete_key_exec(), depthdropper_init(), depthdropper_poll(), drw_uniform_property_lookup(), dtar_get_prop_val(), eyedropper_init(), foreach_parse_args(), id_search_allows_id(), jump_to_target_button(), keyingset_get_from_op_with_error(), lib_override_library_id_reset_do(), lookup_property(), menu_items_from_ui_create_item_from_button(), menu_items_to_ui_button(), menu_search_exec_fn(), nlaevalchan_get_default_values(), operator_enum_search_update_fn(), outliner_add_element(), outliner_draw_rnabuts(), pose_propagate_get_refVal(), pose_slide_apply_props(), prop_subscript_ass_array_slice(), pyprop_array_foreach_getset(), pyrna_array_contains_py(), pyrna_array_index(), pyrna_dir_members_py(), pyrna_driver_get_variable_value(), pyrna_math_object_from_array(), pyrna_param_to_py(), pyrna_prop_array_subscript_slice(), pyrna_prop_as_bytes(), pyrna_prop_CreatePyObject(), pyrna_prop_dir(), pyrna_prop_str(), pyrna_prop_to_py(), pyrna_py_to_array(), pyrna_py_to_array_index(), pyrna_py_to_prop(), pyrna_py_to_prop_array_index(), pyrna_srna_contains_pointer_prop_srna(), radial_control_get_path(), radial_control_invoke(), RNA_function_call_direct_va(), RNA_path_append(), rna_path_parse(), RNA_pointer_as_string_keywords_ex(), rna_porperty_override_collection_subitem_lookup(), RNA_property_as_string(), RNA_property_assign_default(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_boolean_get_default_index(), RNA_property_boolean_get_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_collection_add(), RNA_property_collection_assign_int(), RNA_property_collection_begin(), RNA_property_collection_clear(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string_index(), RNA_property_collection_move(), RNA_property_collection_raw_array(), RNA_property_collection_remove(), RNA_property_collection_type_get(), RNA_property_enum_get(), RNA_property_enum_get_default(), RNA_property_enum_set(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_get_index(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_get_default_array(), RNA_property_int_get_default_index(), RNA_property_int_get_index(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_int_set_index(), RNA_property_is_unlink(), RNA_property_pointer_add(), RNA_property_pointer_get(), RNA_property_pointer_remove(), RNA_property_pointer_set(), RNA_property_reset(), RNA_property_string_default_length(), RNA_property_string_get(), RNA_property_string_get_alloc(), RNA_property_string_get_default(), RNA_property_string_get_default_alloc(), RNA_property_string_length(), RNA_property_string_set(), RNA_property_string_set_bytes(), rna_raw_access(), rna_struct_update_when_changed(), search_id_collection(), setting_get_rna_values(), shortcut_get_operator_property(), template_keymap_item_properties(), template_search_get_searchprop(), template_search_setup(), template_search_textbut_width(), tree_element_to_path(), ui_but_add_search(), ui_but_event_property_operator_string(), ui_but_is_bool(), ui_but_is_compatible(), ui_but_is_float(), ui_but_is_pushed_ex(), ui_but_is_user_menu_compatible(), ui_but_menu_step_poll(), ui_but_range_set_hard(), ui_but_range_set_soft(), ui_but_search_refresh(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), UI_but_string_info_get(), ui_but_string_set(), ui_but_update_ex(), ui_but_v3_get(), ui_but_v3_set(), ui_but_value_get(), ui_but_value_set(), ui_button_value_default(), UI_context_active_but_prop_get_filebrowser(), ui_def_but_rna(), ui_do_but_TAB(), ui_handle_button_event(), ui_item_array(), ui_item_enum_expand_exec(), ui_item_rna_size(), ui_item_with_label(), ui_layout_operator_properties_only_booleans(), UI_pie_menu_invoke_from_rna_enum(), ui_popup_context_menu_for_button(), ui_popup_menu_create(), ui_rna_collection_search_update_fn(), ui_selectcontext_apply(), ui_selectcontext_begin(), ui_template_id(), ui_tooltip_data_from_button(), uiDefAutoButR(), uiDefAutoButsRNA(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR(), uiItemPointerR_prop(), uiItemsEnumR(), uiItemsFullEnumO(), uiItemsFullEnumO_items(), uilist_item_use_dynamic_tooltip(), uiTemplateAnyID(), uiTemplateCacheFile(), uiTemplateColorRamp(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateHistogram(), uiTemplateIconView(), uiTemplateImage(), uiTemplateList(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePathBuilder(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), update_autoflags_fcurve_direct(), validate_array(), WM_gizmo_properties_default(), WM_gizmo_properties_sanitize(), WM_menu_invoke_ex(), WM_operator_properties_default(), WM_operator_properties_sanitize(), and WM_operator_view3d_unit_defaults().
| const char* RNA_property_ui_description | ( | const PropertyRNA * | prop | ) |
Definition at line 2053 of file rna_access.c.
References rna_ensure_property_description(), and TIP_.
Referenced by template_search_add_button_searchmenu(), UI_but_string_info_get(), ui_def_but_rna(), ui_tooltip_data_from_gizmo(), and uiTemplateCryptoPicker().
| const char* RNA_property_ui_description_raw | ( | const PropertyRNA * | prop | ) |
Definition at line 2058 of file rna_access.c.
References rna_ensure_property_description().
| int RNA_property_ui_icon | ( | const PropertyRNA * | prop | ) |
Definition at line 2068 of file rna_access.c.
References PropertyRNA::icon, and rna_ensure_property().
Referenced by ui_def_but_rna(), and uiItemFullR().
| const char* RNA_property_ui_name | ( | const PropertyRNA * | prop | ) |
Definition at line 2043 of file rna_access.c.
References CTX_IFACE_, rna_ensure_property_name(), and PropertyRNA::translation_context.
Referenced by acf_nla_curve_name(), button_matches_search_filter(), getname_anim_fcurve(), menu_items_from_ui_create_item_from_button(), outliner_add_element(), outliner_idcode_to_plural(), radial_control_update_header(), template_keymap_item_properties(), UI_but_string_info_get(), ui_def_but_rna(), ui_def_but_rna__menu(), uiDefAutoButsRNA(), uiItemFullR(), uiItemMenuEnumR_prop(), and uiItemPointerR_prop().
| const char* RNA_property_ui_name_raw | ( | const PropertyRNA * | prop | ) |
Definition at line 2048 of file rna_access.c.
References rna_ensure_property_name().
| PropertyUnit RNA_property_unit | ( | PropertyRNA * | prop | ) |
Definition at line 1187 of file rna_access.c.
References RNA_property_subtype(), and RNA_SUBTYPE_UNIT.
Referenced by add_driver_with_target(), and radial_control_invoke().
| void RNA_property_unset | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) |
Definition at line 6665 of file rna_access.c.
References PropertyRNA::flag, PropertyRNA::identifier, PROP_IDPROPERTY, ptr, rna_ensure_property(), and rna_idproperty_free().
Referenced by gizmo_ruler_exit(), gizmo_ruler_invoke(), gizmo_spin_exec(), pyrna_struct_property_unset(), RNA_struct_property_unset(), saveTransform(), unset_property_button_exec(), WIDGETGROUP_gizmo_invoke_prepare(), and wm_keymap_item_find().
|
static |
Definition at line 2227 of file rna_access.c.
References C, CTX_wm_message_bus(), DEG_id_tag_update(), DEG_relations_tag_update(), PropertyRNA::flag, GS, ID_NT, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_PARAMETERS, ID_RECALC_TRANSFORM, ID_TYPE_IS_COW, PropertyRNA::magic, ID::name, NC_MATERIAL, NC_WINDOW, ND_SHADING, PropertyRNA::noteflag, NULL, PointerRNA::owner_id, PROP_CONTEXT_PROPERTY_UPDATE, PROP_CONTEXT_UPDATE, PROP_IDPROPERTY, PROP_NO_DEG_UPDATE, PROP_POINTER, ptr, rna_ensure_property(), RNA_MAGIC, RNA_property_pointer_type(), RNA_struct_is_ID(), scene, PropertyRNA::type, PropertyRNA::update, WM_main_add_notifier(), and WM_msg_publish_rna().
Referenced by RNA_property_update(), and RNA_property_update_main().
| void RNA_property_update | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop | ||
| ) |
Definition at line 2317 of file rna_access.c.
References C, CTX_data_main(), CTX_data_scene(), ptr, and rna_property_update().
Referenced by actedit_change_action(), action_new_exec(), cachefile_open_exec(), copy_to_selected_button(), datadropper_id_set(), depthdropper_depth_set(), drop_color_invoke(), ED_animedit_unlink_action(), eyedropper_color_set(), eyedropper_colorband_apply(), eyedropper_colorband_cancel(), eyedropper_colorband_point_modal(), file_browse_exec(), font_open_exec(), font_unlink_exec(), gizmo_node_crop_update(), id_single_user(), image_new_exec(), image_open_exec(), lib_id_unlink_exec(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), menu_search_exec_fn(), new_material_exec(), new_node_tree_exec(), new_texture_exec(), new_world_exec(), object_unlink_data_exec(), open_exec(), operator_button_property_finish(), pyrna_prop_array_ass_subscript(), pyrna_prop_update(), pyrna_py_to_prop(), pyrna_py_to_prop_array_index(), radial_control_modal(), rna_struct_update_when_changed(), rna_update_cb(), sequencer_change_path_exec(), space_context_cycle_invoke(), space_type_set_or_cycle_exec(), template_id_cb(), template_ID_set_property_exec_fn(), template_search_exec_fn(), text_new_exec(), text_open_exec(), ui_apply_but_funcs_after(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_handle_list_event(), ui_layer_but_cb(), ui_selectcontext_apply(), v3d_object_dimension_buts(), WM_gizmo_target_property_float_set(), and WM_gizmo_target_property_float_set_array().
| bool RNA_property_update_check | ( | PropertyRNA * | prop | ) |
Definition at line 2312 of file rna_access.c.
References PropertyRNA::magic, PropertyRNA::noteflag, RNA_MAGIC, and PropertyRNA::update.
Referenced by mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), pyrna_prop_array_ass_subscript(), pyrna_py_to_prop(), and pyrna_py_to_prop_array_index().
| void RNA_property_update_main | ( | Main * | bmain, |
| Scene * | scene, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop | ||
| ) |
Definition at line 2322 of file rna_access.c.
References NULL, ptr, rna_property_update(), and scene.
Referenced by ANIM_list_elem_update().
|
static |
Definition at line 4468 of file rna_access.c.
References Freestyle::a, RawArray::array, BKE_report(), BKE_reportf(), ELEM, err, PropertyRNA::getlength, RawArray::len, MEM_callocN, MEM_freeN, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_RAW_BOOLEAN, PROP_RAW_FLOAT, PROP_RAW_INT, ptr, RAW_GET, RAW_SET, RNA_pointer_create(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_array_length(), rna_property_array_length_all_dimensions(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_collection_raw_array(), RNA_property_editable(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_pointer_type(), RNA_property_type(), RNA_raw_type_sizeof(), RNA_struct_find_property(), RPT_ERROR, size(), RawArray::stride, and RawArray::type.
Referenced by RNA_property_collection_raw_get(), and RNA_property_collection_raw_set().
| int RNA_raw_type_sizeof | ( | RawPropertyType | type | ) |
Definition at line 4431 of file rna_access.c.
References double(), float(), PROP_RAW_BOOLEAN, PROP_RAW_CHAR, PROP_RAW_DOUBLE, PROP_RAW_FLOAT, PROP_RAW_INT, PROP_RAW_SHORT, and type.
Referenced by foreach_parse_args(), and rna_raw_access().
| void RNA_string_get | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| char * | value | ||
| ) |
Definition at line 6514 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_string_get(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by add_driver_with_target(), animchannels_find_exec(), animchannels_group_exec(), armature_bone_primitive_add_exec(), bake_init_api_data(), blend_save_check(), cachefile_open_exec(), collection_create_exec(), create_orientation_exec(), drop_named_material_invoke(), ED_image_filesel_detect_sequences(), ed_marker_rename_exec(), ed_undo_push_exec(), edit_constraint_property_get(), edit_modifier_property_get(), edit_shaderfx_property_get(), filepath_drop_exec(), fileselect_ensure_updated_file_params(), font_open_exec(), geometry_attribute_add_exec(), gpencil_edit_modifier_property_get(), gpencil_layer_duplicate_object_exec(), gpencil_layer_mask_add_exec(), gpencil_stroke_change_color_exec(), image_replace_exec(), image_save_options_from_op(), image_sequence_get_frame_ranges(), image_unpack_exec(), jump_to_target_ptr(), lib_id_load_custom_preview_exec(), mask_layer_new_exec(), mask_new_exec(), menu_types_add_from_keymap_items(), move_to_collection_exec(), multires_external_save_exec(), new_node_tree_exec(), node_add_collection_get_and_poll_collection_node_tree(), node_add_group_get_and_poll_group_node_tree(), node_add_mask_exec(), node_add_object_get_and_poll_object_node_tree(), node_add_texture_get_and_poll_texture_node_tree(), node_composit_buts_viewlayers(), node_output_file_add_socket_exec(), object_add_named_exec(), object_select_same_collection_exec(), open_exec(), palette_join_exec(), poselib_add_exec(), poselib_rename_exec(), proj_paint_image_create(), rigidbody_world_export_exec(), run_pyfile_exec(), screen_render_single_layer_set(), screenshot_exec(), sequencer_add_movie_multiple_strips(), sequencer_add_sound_multiple_strips(), sequencer_change_path_exec(), sequencer_export_subtitles_exec(), sound_mixdown_exec(), sound_unpack_exec(), strip_modifier_move_exec(), strip_modifier_remove_exec(), text_open_exec(), text_save_as_exec(), texture_paint_image_from_view_exec(), ui_but_user_menu_add(), ui_tooltip_data_from_tool(), unpack_item_exec(), wm_call_menu_exec(), wm_call_menu_get_name(), wm_call_panel_exec(), wm_call_panel_get_name(), wm_call_pie_menu_exec(), wm_call_pie_menu_invoke(), WM_drag_free_imported_drag_ID(), wm_gpencil_import_svg_common_check(), wm_gpencil_import_svg_exec(), wm_lib_relocate_exec_do(), wm_lib_relocate_invoke(), wm_link_append_exec(), wm_open_mainfile__open(), wm_open_mainfile_check(), wm_open_mainfile_description(), WM_operator_drop_load_path(), wm_recover_auto_save_exec(), wm_save_as_mainfile_exec(), wm_save_mainfile_invoke(), and workspace_append_activate_exec().
| char* RNA_string_get_alloc | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| char * | fixedbuf, | ||
| int | fixedlen | ||
| ) |
Definition at line 6527 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, NULL, ptr, RNA_property_string_get_alloc(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by console_history_append_exec(), console_insert_exec(), console_scrollback_append_exec(), file_browse_exec(), find_missing_files_exec(), get_string(), image_sequence_get_frame_ranges(), insert_text_exec(), load_data_init_from_operator(), paste_from_file_exec(), radial_control_get_path(), sequencer_add_image_strip_load_files(), sequencer_change_path_exec(), sequencer_image_seq_get_minmax_frame(), sequencer_image_seq_reserve_frames(), text_insert_exec(), and tile_add_exec().
| int RNA_string_length | ( | PointerRNA * | ptr, |
| const char * | name | ||
| ) |
Definition at line 6539 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_string_length(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by console_insert_invoke(), gpencil_modifier_masking_panel_draw(), modifier_vgroup_ui(), panel_draw(), text_insert_invoke(), vertex_group_panel_draw(), and weightvg_ui_common().
| void RNA_string_set | ( | PointerRNA * | ptr, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Definition at line 6550 of file rna_access.c.
References StructRNA::identifier, IDP_Chain::name, ptr, RNA_property_string_set(), RNA_struct_find_property(), and PointerRNA::type.
Referenced by animchannels_find_invoke(), blend_file_drop_copy(), blend_save_check(), cachefile_open_invoke(), clip_drop_copy(), clip_filesel(), console_insert_invoke(), constraint_reorder(), doc_view_manual_ui_context_exec(), ed_marker_rename_invoke(), edit_constraint_invoke_properties(), edit_modifier_invoke_properties(), edit_modifier_invoke_properties_with_hover(), edit_shaderfx_invoke_properties(), file_browse_invoke(), file_directory_enter_handle(), file_sfile_to_operator_ex(), filepath_drop_copy(), ghost_event_proc(), gpencil_edit_modifier_invoke_properties(), gpencil_modifier_reorder(), id_drop_copy(), image_drop_copy(), image_filesel(), image_new_invoke(), image_save_options_to_op(), insert_text_invoke(), lib_relocate(), modifier_reorder(), multires_external_save_invoke(), node_composit_buts_viewlayers(), node_group_drop_copy(), node_id_drop_copy(), node_id_path_drop_copy(), node_render_changed_exec(), open_invoke(), path_drop_copy(), poselib_add_menu_invoke__replacemenu(), poselib_rename_invoke(), recent_files_menu_draw(), rigidbody_world_export_invoke(), screenshot_invoke(), sculpt_detail_size_set_radial_control(), sequencer_change_path_invoke(), sequencer_drop_copy(), sequencer_export_subtitles_invoke(), sequencer_generic_invoke_path__internal(), set_brush_rc_props(), set_string(), shaderfx_reorder(), subdivisions_panel_draw(), template_ID(), template_operator_property_buts_draw_single(), text_drop_copy(), text_drop_paste(), text_insert_invoke(), text_open_invoke(), text_save_as_invoke(), texture_paint_add_texture_paint_slot_invoke(), tile_add_invoke(), ui_but_menu_add_path_operators(), ui_popup_context_menu_for_button(), ui_tooltip_data_from_tool(), uiItemStringO(), uiTemplateRecentFiles(), unpack_menu(), view3d_collection_drop_copy(), view3d_id_drop_copy(), view3d_id_drop_copy_with_type(), view3d_id_path_drop_copy(), view3d_ob_drop_copy(), volume_import_invoke(), wm_gpencil_import_svg_common_check(), WM_keymap_add_context_enum_set_items(), WM_keymap_add_menu(), WM_keymap_add_menu_pie(), WM_keymap_add_panel(), WM_keymap_add_tool(), wm_lib_relocate_invoke(), wm_link_append_invoke(), WM_menu_name_call(), wm_open_mainfile__select_file_path(), wm_recover_auto_save_invoke(), WM_toolsystem_ref_set_by_id_ex(), and workspace_append_button().
| bool RNA_struct_available_or_report | ( | ReportList * | reports, |
| const char * | identifier | ||
| ) |
Use when registering structs with the STRUCT_PUBLIC_NAMESPACE flag.
Definition at line 1063 of file rna_access.c.
References StructRNA::base, BKE_report(), BLI_dynstr_append(), BLI_dynstr_appendf(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), StructRNA::identifier, MEM_freeN, NULL, result, RNA_struct_find(), RPT_ERROR, and UNLIKELY.
Definition at line 776 of file rna_access.c.
References type.
Referenced by bpy_class_validate_recursive(), pyrna_srna_PyBase(), and ui_rna_is_userdef().
Use to find the subtype directly below a base-type.
So if type were RNA_SpotLIght, RNA_struct_base_of(type, &RNA_ID) would return &RNA_Light.
Definition at line 786 of file rna_access.c.
Referenced by pyrna_py_to_prop().
| bool RNA_struct_bl_idname_ok_or_report | ( | ReportList * | reports, |
| const char * | identifier, | ||
| const char * | sep | ||
| ) |
Definition at line 1093 of file rna_access.c.
References BKE_reportf(), Freestyle::c, ListBase::last, NULL, RPT_ERROR, and RPT_WARNING.
| void* RNA_struct_blender_type_get | ( | StructRNA * | srna | ) |
Definition at line 1039 of file rna_access.c.
References StructRNA::blender_type.
| void RNA_struct_blender_type_set | ( | StructRNA * | srna, |
| void * | blender_type | ||
| ) |
Definition at line 1044 of file rna_access.c.
References StructRNA::blender_type.
Referenced by gizmo_properties_init(), gizmogroup_properties_init(), make_socket_type_virtual(), make_standard_socket_type(), ntree_interface_type_create(), operator_properties_init(), register_node_type_cmp_group(), register_node_type_geo_group(), register_node_type_sh_group(), register_node_type_tex_group(), and RNA_struct_free_extension().
| bool RNA_struct_contains_property | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop_test | ||
| ) |
Definition at line 908 of file rna_access.c.
References ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_struct_iterator_property(), and PointerRNA::type.
Referenced by ui_but_is_rna_valid(), and UI_but_string_info_get().
| unsigned int RNA_struct_count_properties | ( | StructRNA * | srna | ) |
Definition at line 930 of file rna_access.c.
References NULL, RNA_pointer_create(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and UNUSED_VARS.
Referenced by WM_operatortype_props_advanced_begin().
| StructRNA* RNA_struct_find | ( | const char * | identifier | ) |
Definition at line 718 of file rna_access.c.
References BLENDER_RNA, BLI_ghash_lookup(), and BlenderRNA::structs_map.
Referenced by make_socket_type_virtual(), make_standard_socket_type(), ntree_interface_unique_identifier_check(), register_node_type_cmp_group(), register_node_type_geo_group(), register_node_type_sh_group(), register_node_type_tex_group(), and RNA_struct_available_or_report().
| FunctionRNA* RNA_struct_find_function | ( | StructRNA * | srna, |
| const char * | identifier | ||
| ) |
Definition at line 958 of file rna_access.c.
References BLI_findstring_ptr(), NULL, RNA_function_identifier(), RNA_pointer_create(), RNA_PROP_BEGIN, RNA_PROP_END, RNA_Struct, RNA_struct_find_property(), STREQ, and type.
Referenced by pyrna_prop_collection_getattro(), pyrna_struct_getattro(), RNA_function_call_direct_lookup(), RNA_function_call_direct_va_lookup(), and RNA_function_call_lookup().
|
static |
Definition at line 892 of file rna_access.c.
References NULL, ptr, RNA_PROP_END, RNA_property_pointer_type(), and RNA_STRUCT_BEGIN.
Referenced by RNA_path_from_ID_to_struct().
| PropertyRNA* RNA_struct_find_property | ( | PointerRNA * | ptr, |
| const char * | identifier | ||
| ) |
Definition at line 866 of file rna_access.c.
References PointerRNA::data, NULL, ptr, RNA_path_resolve_property(), RNA_property_collection_lookup_string(), RNA_struct_iterator_property(), and PointerRNA::type.
Referenced by acf_fcurve_name_prop(), actedit_change_action(), add_driver_button_menu_invoke(), add_primitive_cube_gizmo_exec(), ANIM_channel_draw_widgets(), area_split_invoke(), area_split_modal(), average_tracks_invoke(), bake_init_api_data(), bake_set_props(), BKE_keyblock_curval_rnapath_get(), blur_panel_draw(), bookmark_delete_exec(), bookmark_select_exec(), BPY_rna_types(), brush_select_exec(), button2d_draw_intern(), buttons_texture_modifier_foreach(), buttons_texture_modifier_geonodes_users_add(), buttons_texture_modifier_gpencil_foreach(), buttons_texture_users_from_context(), UnitConverter::calculate_scale(), collection_instance_add_exec(), collection_isolate_invoke(), context_cycle_prop_get(), cube_project_exec(), curve_draw_exec_precalc(), CurveProfile_buttons_layout(), data_transfer_check(), data_transfer_poll_property(), depthdropper_init(), dt_layers_select_dst_itemf(), dt_layers_select_src_itemf(), ED_animedit_unlink_action(), ed_marker_move_invoke(), ED_object_add_generic_get_opts(), ED_view3d_gizmo_mesh_preselect_get_active(), edbm_bevel_update_status_text(), edbm_dissolve_mode_exec(), edbm_extrude_repeat_exec(), edbm_fill_grid_exec(), edbm_point_normals_modal(), edbm_screw_invoke(), edbm_select_similar_exec(), edbm_sort_elements_exec(), edbm_spin_invoke(), edbm_tris_convert_to_quads_exec(), DocumentExporter::exportCurrentScene(), file_browse_exec(), file_browse_invoke(), file_directory_new_exec(), file_operator_to_sfile(), file_panel_operator(), file_select_use_default_display_type(), file_select_use_default_sort_type(), file_sfile_to_operator_ex(), fileselect_ensure_updated_file_params(), DocumentImporter::finish(), followpath_path_animate_exec(), foreach_attr_type(), generator_panel_draw(), gesture_modal_end(), gesture_modal_state_from_operator(), gesture_modal_state_to_operator(), get_enum_identifier(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_refresh(), gizmo2d_xform_setup(), gizmo_dial_exit(), GIZMO_GT_snap_3d(), gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_spin_exec(), gizmogroup_init_properties_from_twtype(), gpencil_convert_layer_exec(), gpencil_stroke_path_animation(), graphkeys_decimate_invoke(), id_data_find_fcurve(), idp_snap_point_from_gizmo_ex(), image_new_exec(), image_open_invoke(), image_sample_apply(), image_save_as_invoke(), image_scale_exec(), image_scale_invoke(), initSnapping(), initTransform(), initTransInfo(), load_data_init_from_operator(), menu_items_from_ui_create(), mesh_bisect_exec(), move_to_collection_exec(), move_to_collection_invoke(), new_node_tree_exec(), node_composit_buts_file_output_ex(), node_composit_buts_viewlayers(), node_file_output_socket_draw(), object_data_instance_add_exec(), object_mode_set_exec(), object_origin_set_exec(), object_warp_verts_exec(), open_exec(), operator_properties_init(), outliner_id_remap_invoke(), paint_exec(), paint_stroke_exec(), panel_custom_data_active_set(), panel_draw(), path_select_params_from_op(), pose_groups_menu_invoke(), pose_slide_apply_props(), poselib_move_exec(), poselib_remove_exec(), py_msgbus_rna_key_from_py(), pyrna_alloc_types(), pyrna_dir_members_rna(), pyrna_free_types(), pyrna_prop_collection_getattro(), pyrna_prop_collection_setattro(), pyrna_pydict_to_props(), pyrna_rotation_euler_order_get(), pyrna_struct_anim_args_parse_ex(), pyrna_struct_getattro(), pyrna_struct_is_property_hidden(), pyrna_struct_is_property_overridable_library(), pyrna_struct_is_property_readonly(), pyrna_struct_is_property_set(), pyrna_struct_keyframe_delete(), pyrna_struct_keyframe_insert(), pyrna_struct_path_from_id(), pyrna_struct_property_overridable_library_set(), pyrna_struct_property_unset(), pyrna_struct_setattro(), pyrna_unregister_class(), region_toggle_exec(), RNA_boolean_get(), RNA_boolean_get_array(), RNA_boolean_set(), RNA_boolean_set_array(), RNA_collection_add(), RNA_collection_begin(), RNA_collection_clear(), RNA_collection_length(), RNA_enum_get(), RNA_enum_is_equal(), RNA_enum_set(), RNA_enum_set_identifier(), RNA_float_get(), RNA_float_get_array(), RNA_float_set(), RNA_float_set_array(), RNA_function_as_string_keywords(), rna_idp_path(), RNA_int_get(), RNA_int_get_array(), RNA_int_set(), RNA_int_set_array(), rna_path_parse(), RNA_path_struct_property_py(), RNA_pointer_add(), RNA_pointer_get(), RNA_pointer_set(), rna_raw_access(), RNA_string_get(), RNA_string_get_alloc(), RNA_string_length(), RNA_string_set(), RNA_struct_find_function(), RNA_struct_property_is_set(), RNA_struct_property_is_set_ex(), RNA_struct_property_unset(), save_image_op(), save_set_compress(), save_set_filepath(), saveTransform(), screen_user_menu_draw(), select_linked_delimit_default_from_op(), sequencer_add_image_strip_calculate_length(), sequencer_add_image_strip_invoke(), sequencer_add_movie_strip_exec(), sequencer_add_movie_strip_invoke(), sequencer_add_sound_strip_exec(), sequencer_change_path_exec(), sequencer_disable_one_time_properties(), sequencer_drop_copy(), sequencer_generic_invoke_path__internal(), singleuser_action_fn(), singleuser_world_fn(), space_type_set_or_cycle_exec(), stitch_exit(), template_ID(), template_search_get_searchprop(), template_search_setup(), transform_poll_property(), transformops_loopsel_hack(), transparency_panel_draw(), ui_but_event_property_operator_string(), ui_def_but_rna_propname(), ui_do_but_COLOR(), ui_pie_menu_level_invoke(), ui_template_id(), ui_tooltip_data_from_tool(), uiItemDecoratorR(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemEnumR(), uiItemEnumR_string(), uiItemMenuEnumR(), uiItemPointerR(), uiItemR(), uiItemsEnumR(), uiItemsFullEnumO(), uilist_filter_items_default(), uilist_item_use_dynamic_tooltip(), uiTemplateAnyID(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateColorRamp(), uiTemplateColorspaceSettings(), uiTemplateComponentMenu(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateHistogram(), uiTemplateIconView(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageViews(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), undo_history_exec(), uv_from_view_invoke(), uv_map_clip_correct_multi(), uv_map_transform(), v3d_object_dimension_buts(), view3d_cursor3d_invoke(), view3d_interactive_add_begin(), view_scrolldown_exec(), view_scrollup_exec(), vieworbit_exec(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_node_crop_refresh(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_cage_setup(), WM_generic_select_modal(), WM_gesture_lasso_invoke(), WM_gesture_lasso_path_to_array(), WM_gesture_lines_invoke(), WM_gesture_straightline_invoke(), WM_gizmo_target_property_def_rna(), wm_homefile_read_exec(), wm_lib_relocate_exec_do(), wm_link_append_exec(), wm_link_append_flag(), wm_open_init_load_ui(), wm_open_init_use_scripts(), wm_open_mainfile_check(), WM_operator_filesel_ensure_ext_imtype(), WM_operator_properties_select_random_seed_increment_get(), wm_save_mainfile_invoke(), and wm_stereo3d_set_properties().
| const char* RNA_struct_identifier | ( | const StructRNA * | type | ) |
Definition at line 723 of file rna_access.c.
References type.
Referenced by bpy_class_call(), bpy_class_validate_recursive(), bpy_types_module_dir(), CTX_data_pointer_get_type(), ctx_wm_python_context_get(), deferred_register_prop(), DEG_get_evaluated_rna_pointer(), foreach_parse_args(), mathutils_rna_matrix_set(), mathutils_rna_vector_set(), mathutils_rna_vector_set_index(), ntreeInterfaceTypeGet(), py_msgbus_rna_key_from_py(), py_to_array_index(), PYOP_wrap_macro_define(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), pyrna_enum_to_py(), pyrna_func_call(), pyrna_func_doc_get(), pyrna_func_repr(), pyrna_prop_array_ass_subscript(), pyrna_prop_as_bytes(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), pyrna_prop_collection_type_check(), pyrna_prop_path_from_id(), pyrna_prop_str(), pyrna_prop_to_enum_bitfield(), pyrna_py_to_prop(), pyrna_register_class(), pyrna_srna_ExternalType(), pyrna_srna_Subtype(), pyrna_struct_anim_args_parse_no_resolve(), pyrna_struct_bl_rna_find_subclass_recursive(), pyrna_struct_bl_rna_get_subclass(), pyrna_struct_CreatePyObject(), pyrna_struct_is_property_hidden(), pyrna_struct_is_property_overridable_library(), pyrna_struct_is_property_readonly(), pyrna_struct_is_property_set(), pyrna_struct_path_from_id(), pyrna_struct_path_resolve(), pyrna_struct_property_overridable_library_set(), pyrna_struct_property_unset(), pyrna_struct_repr(), pyrna_struct_setattro(), pyrna_struct_str(), pyrna_unregister_class(), RNA_function_call_direct_va(), rna_function_parameter_parse(), rna_id_write_error(), template_search_get_searchprop(), template_search_setup(), ui_but_anim_decorate_update_from_flag(), UI_but_online_manual_id(), UI_but_string_info_get(), ui_item_with_label(), ui_layout_introspect_button(), ui_pie_menu_level_invoke(), ui_template_id(), uiItemDecoratorR(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemMenuEnumR(), uiItemPointerR(), uiItemPointerR_prop(), uiItemR(), uiItemsEnumR(), uiItemsFullEnumO(), uiItemsFullEnumO_items(), uiTemplateAnyID(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateColorspaceSettings(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateIconView(), uiTemplateImage(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplateTrack(), validate_array(), validate_array_length(), WM_gizmo_target_property_def_rna(), WM_msg_publish_rna_params(), wm_msg_rna_repr(), and WM_msg_subscribe_rna_params().
| IDProperty* RNA_struct_idprops | ( | PointerRNA * | ptr, |
| bool | create | ||
| ) |
Definition at line 372 of file rna_access.c.
References NULL, ptr, type, and PointerRNA::type.
Referenced by pyrna_struct_ass_subscript(), pyrna_struct_contains(), pyrna_struct_get(), pyrna_struct_items(), pyrna_struct_keys(), pyrna_struct_pop(), pyrna_struct_subscript(), pyrna_struct_values(), rna_idproperty_find(), rna_idproperty_free(), rna_idproperty_ui_ensure(), RNA_path_from_struct_to_idproperty(), rna_path_parse(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_collection_add(), RNA_property_copy(), RNA_property_enum_set(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_pointer_add(), RNA_property_pointer_remove(), RNA_property_pointer_set(), rna_property_rna_or_id_get(), RNA_property_string_set(), RNA_property_string_set_bytes(), and RNA_struct_idprops_unset().
| bool RNA_struct_idprops_check | ( | StructRNA * | srna | ) |
Definition at line 383 of file rna_access.c.
References StructRNA::idproperties.
Referenced by pyrna_srna_Subtype(), pyrna_struct_contains(), pyrna_struct_get(), pyrna_struct_getattro(), pyrna_struct_items(), pyrna_struct_keys(), pyrna_struct_pop(), pyrna_struct_subscript(), pyrna_struct_values(), and RNA_pointer_as_string_keywords_ex().
| bool RNA_struct_idprops_contains_datablock | ( | const StructRNA * | type | ) |
Whether given type implies datablock usage by IDProperties. This is used to prevent classes allowed to have IDProperties, but not datablock ones, to indirectly use some (e.g. by assigning an IDP_GROUP containing some IDP_ID pointers...).
Definition at line 823 of file rna_access.c.
References STRUCT_CONTAINS_DATABLOCK_IDPROPERTIES, STRUCT_ID, and type.
Referenced by BPy_CollectionProperty(), BPy_PointerProperty(), deferred_register_prop(), and pyrna_struct_ass_subscript().
| bool RNA_struct_idprops_datablock_allowed | ( | const StructRNA * | type | ) |
Definition at line 812 of file rna_access.c.
References STRUCT_NO_DATABLOCK_IDPROPERTIES, STRUCT_NO_IDPROPERTIES, and type.
Referenced by deferred_register_prop(), and pyrna_struct_ass_subscript().
| bool RNA_struct_idprops_register_check | ( | const StructRNA * | type | ) |
Definition at line 807 of file rna_access.c.
References STRUCT_NO_IDPROPERTIES, and type.
Referenced by pyrna_deferred_register_class().
| bool RNA_struct_idprops_unset | ( | PointerRNA * | ptr, |
| const char * | identifier | ||
| ) |
Definition at line 829 of file rna_access.c.
References IDP_FreeFromGroup(), IDP_GetPropertyFromGroup(), ptr, and RNA_struct_idprops().
Referenced by ED_operatormacros_clip(), view_align_update(), WM_gizmo_properties_reset(), and WM_operator_properties_reset().
| void** RNA_struct_instance | ( | PointerRNA * | ptr | ) |
Definition at line 1016 of file rna_access.c.
References NULL, ptr, type, and PointerRNA::type.
Referenced by bpy_class_call(), pyrna_struct_as_instance(), and pyrna_struct_CreatePyObject().
Definition at line 844 of file rna_access.c.
References StructRNA::base, RNA_AnyType, and type.
Referenced by bpy_class_call(), BPy_CollectionProperty(), BPy_PointerProperty(), blender::deg::DepsgraphNodeBuilder::build_driver_id_property(), blender::deg::DepsgraphRelationBuilder::build_driver_id_property(), buttons_context_compute(), buttons_context_path_brush(), buttons_context_path_collection(), buttons_context_path_data(), buttons_context_path_linestyle(), buttons_context_path_material(), buttons_context_path_object(), buttons_context_path_particle(), buttons_context_path_pose_bone(), buttons_context_path_scene(), buttons_context_path_texture(), buttons_context_path_view_layer(), buttons_context_path_world(), buttons_texture_context_compute(), buttons_texture_modifier_geonodes_users_add(), blender::deg::RNANodeQuery::construct_node_identifier(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), ctx_wm_python_context_get(), edit_constraint_invoke_properties(), edit_modifier_invoke_properties_with_hover(), edit_shaderfx_invoke_properties(), Freestyle_evaluateColorRamp(), Freestyle_evaluateCurveMappingF(), get_pointer_type(), gpencil_edit_modifier_invoke_properties(), gpencil_modifier_panel_get_property_pointers(), jump_to_target_ptr(), modifier_panel_get_property_pointers(), new_material_exec(), node_socket_color_get(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), pyrna_prop_collection_type_check(), pyrna_py_to_prop(), rna_function_parameter_parse(), RNA_path_from_ID_to_struct(), RNA_path_resolve_from_type_to_property(), RNA_property_overridable_get(), RNA_property_pointer_set(), RNA_struct_override_apply(), set_pointer_type(), shaderfx_panel_get_property_pointers(), template_keymap_item_properties(), template_texture_select(), ui_but_event_property_operator_string(), UI_context_copy_to_selected_list(), UI_icon_from_rnaptr(), ui_item_with_label(), uiTemplateColorRamp(), uiTemplateConstraintHeader(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateHistogram(), uiTemplatePalette(), uiTemplateVectorscope(), uiTemplateWaveform(), WM_gizmo_properties_sanitize(), and WM_operator_properties_sanitize().
| bool RNA_struct_is_ID | ( | const StructRNA * | type | ) |
Definition at line 797 of file rna_access.c.
References STRUCT_ID, and type.
Referenced by BKE_lib_override_rna_property_find(), BPy_PointerProperty(), data_select_linked_fn(), blender::ed::outliner::TreeElementOverridesBase::expand(), lib_id_fake_user_toggle_exec(), lib_id_preview_editing_poll(), lib_id_unlink_exec(), lib_override_library_id_reset_do(), AssetMarkHelper::operator()(), AssetClearHelper::operator()(), outliner_draw_tree_element(), pyrna_id_CheckPyObject(), pyrna_param_to_py(), pyrna_struct_anim_args_parse_ex(), pyrna_struct_anim_args_parse_no_resolve(), pyrna_struct_repr(), radial_control_get_properties(), RNA_path_from_ID_to_property_index(), RNA_path_from_ID_to_struct(), RNA_path_struct_property_py(), rna_pointer_as_string__bldata(), RNA_pointer_recast(), RNA_property_pointer_get(), rna_property_update(), RNA_struct_override_apply(), template_add_button_search_menu(), tree_element_get_icon(), tree_element_to_path(), ui_def_but_rna(), UI_icon_from_rnaptr(), ui_rna_collection_search_update_fn(), and uiItemLDrag().
| PropertyRNA* RNA_struct_iterator_property | ( | StructRNA * | type | ) |
Definition at line 771 of file rna_access.c.
References type.
Referenced by CTX_data_dir_get_ex(), operator_last_properties_init_impl(), outliner_add_element(), pyrna_dir_members_rna(), RNA_function_as_string_keywords(), RNA_pointer_as_string_keywords(), RNA_struct_contains_property(), RNA_struct_equals(), RNA_struct_find_property(), RNA_struct_override_matches(), rna_struct_update_when_changed(), WM_gizmo_properties_reset(), and WM_operator_properties_reset().
| char* RNA_struct_name_get_alloc | ( | PointerRNA * | ptr, |
| char * | fixedbuf, | ||
| int | fixedlen, | ||
| int * | r_len | ||
| ) |
Definition at line 1049 of file rna_access.c.
References PointerRNA::data, NULL, ptr, RNA_property_string_get_alloc(), RNA_struct_name_property(), and PointerRNA::type.
Referenced by buttons_panel_context_draw(), CTX_data_dir_get_ex(), outliner_add_element(), pyrna_dir_members_rna(), pyrna_enum_to_py(), pyrna_prop_collection_find(), pyrna_prop_collection_items(), pyrna_prop_collection_keys(), pyrna_prop_str(), pyrna_struct_str(), tree_element_to_path(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), ui_rna_collection_search_update_fn(), and uilist_filter_items_default().
| PropertyRNA* RNA_struct_name_property | ( | const StructRNA * | type | ) |
Definition at line 761 of file rna_access.c.
References type.
Referenced by acf_generic_idblock_name_prop(), acf_generic_idfill_name_prop(), acf_gpl_name_prop(), acf_group_name_prop(), acf_masklay_name_prop(), acf_nlaaction_name_prop(), acf_nlatrack_name_prop(), acf_object_name_prop(), acf_shapekey_name_prop(), getname_anim_fcurve(), RNA_struct_name_get_alloc(), template_search_add_button_name(), ui_but_string_set(), and uilist_draw_item_default().
| bool RNA_struct_property_is_set | ( | PointerRNA * | ptr, |
| const char * | identifier | ||
| ) |
Definition at line 6685 of file rna_access.c.
References ptr, RNA_property_is_set(), and RNA_struct_find_property().
Referenced by add_marker_invoke(), add_vertex_invoke(), apply_solution_scale_invoke(), cachefile_open_exec(), cachefile_open_invoke(), clean_tracks_invoke(), curve_draw_invoke(), ED_image_filesel_detect_sequences(), ED_object_add_generic_get_opts(), edbm_select_linked_pick_invoke(), edbm_select_mode_invoke(), edbm_shortest_path_pick_invoke(), edit_constraint_invoke_properties(), edit_modifier_invoke_properties(), edit_modifier_invoke_properties_with_hover(), edit_shaderfx_invoke_properties(), file_browse_exec(), gpencil_edit_modifier_invoke_properties(), gpencil_select_invoke(), image_open_invoke(), image_replace_invoke(), image_save_as_invoke(), image_save_options_from_op(), image_unpack_exec(), image_unpack_invoke(), initSnapping(), insert_text_exec(), insert_text_invoke(), mesh_bisect_invoke(), multires_external_save_invoke(), new_node_tree_exec(), node_add_file_exec(), node_add_file_invoke(), object_add_drop_xy_is_set(), object_clear_paths_invoke(), object_instance_add_invoke(), open_invoke(), pack_islands_exec(), paintcurve_add_point_exec(), paintcurve_select_point_exec(), paste_from_file_invoke(), pose_clear_paths_invoke(), proj_paint_default_color(), rigidbody_world_export_invoke(), screen_animation_play_exec(), screen_render_invoke(), screen_render_single_layer_set(), screenshot_invoke(), sequencer_add_effect_strip_exec(), sequencer_add_effect_strip_invoke(), sequencer_add_image_strip_invoke(), sequencer_add_mask_strip_invoke(), sequencer_add_movie_strip_invoke(), sequencer_add_movieclip_strip_invoke(), sequencer_add_scene_strip_invoke(), sequencer_add_sound_strip_invoke(), sequencer_export_subtitles_exec(), sequencer_export_subtitles_invoke(), sequencer_generic_invoke_xy__internal(), set_scale_invoke(), set_solution_scale_invoke(), sound_mixdown_invoke(), sound_open_invoke(), sound_unpack_exec(), sound_unpack_invoke(), stitch_init_all(), text_open_invoke(), text_save_as_invoke(), text_scroll_bar_invoke(), text_scroll_invoke(), transform_invoke(), unwrap_exec(), uv_mark_seam_invoke(), uv_shortest_path_pick_invoke(), viewdolly_invoke(), viewroll_invoke(), viewzoom_exec(), viewzoom_invoke(), volume_import_invoke(), wm_gpencil_import_svg_exec(), wm_link_append_invoke(), wm_open_mainfile_description(), WM_operator_drop_load_path(), WM_operator_filesel(), wm_save_as_mainfile_exec(), and workspace_append_activate_exec().
| bool RNA_struct_property_is_set_ex | ( | PointerRNA * | ptr, |
| const char * | identifier, | ||
| bool | use_ghost | ||
| ) |
Definition at line 6673 of file rna_access.c.
References ptr, RNA_property_is_set_ex(), and RNA_struct_find_property().
Referenced by fileselect_ensure_updated_file_params().
| const EnumPropertyItem* RNA_struct_property_tag_defines | ( | const StructRNA * | type | ) |
Definition at line 766 of file rna_access.c.
References type.
| void RNA_struct_property_unset | ( | PointerRNA * | ptr, |
| const char * | identifier | ||
| ) |
Definition at line 6697 of file rna_access.c.
References ptr, RNA_property_unset(), and RNA_struct_find_property().
Referenced by node_id_path_drop_copy(), and view3d_id_path_drop_copy().
| void* RNA_struct_py_type_get | ( | StructRNA * | srna | ) |
Definition at line 1029 of file rna_access.c.
References StructRNA::py_type.
Referenced by bpy_class_call(), bpy_class_validate_recursive(), pyrna_free_types(), pyrna_register_class(), pyrna_srna_Subtype(), pyrna_subtype_set_rna(), and RNA_struct_free().
| void RNA_struct_py_type_set | ( | StructRNA * | srna, |
| void * | py_type | ||
| ) |
Definition at line 1034 of file rna_access.c.
References StructRNA::py_type.
Referenced by pyrna_free_types(), pyrna_register_class(), pyrna_subtype_set_rna(), and RNA_struct_free_extension().
| StructRegisterFunc RNA_struct_register | ( | StructRNA * | type | ) |
Definition at line 1000 of file rna_access.c.
References type.
Referenced by pyrna_register_class().
| const char* RNA_struct_state_owner_get | ( | void | ) |
Definition at line 8198 of file rna_access.c.
References NULL, and rna_struct_state_owner.
Referenced by pyrna_bl_owner_id_get(), and wm_keymap_new().
| void RNA_struct_state_owner_set | ( | const char * | name | ) |
Definition at line 8188 of file rna_access.c.
References BLI_strncpy(), IDP_Chain::name, and rna_struct_state_owner.
Referenced by pyrna_bl_owner_id_set().
| const char* RNA_struct_translation_context | ( | const StructRNA * | type | ) |
Definition at line 756 of file rna_access.c.
References type.
Referenced by BPY_RNA_gizmo_wrapper(), BPY_RNA_gizmogroup_wrapper(), BPY_RNA_operator_macro_wrapper(), BPY_RNA_operator_wrapper(), UI_but_string_info_get(), and WM_operatortype_append_macro().
| PropertyRNA* RNA_struct_type_find_property | ( | StructRNA * | srna, |
| const char * | identifier | ||
| ) |
Definition at line 953 of file rna_access.c.
References BLI_findstring_ptr(), StructRNA::cont, and ContainerRNA::properties.
Referenced by acf_nla_curve_name(), blender::deg::AnimatedPropertyID::AnimatedPropertyID(), BKE_nlastrip_has_curves_for_property(), clip_draw_dopesheet_channels(), collection_isolate_exec(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), node_socket_template_properties_update(), OBJECT_OT_camera_add(), outliner_collection_set_flag_recursive_fn(), outliner_draw_restrictbuts(), outliner_idcode_to_plural(), outliner_object_set_flag_recursive_fn(), pyrna_struct_meta_idprop_setattro(), UI_but_operatortype_get_from_enum_menu(), and UI_context_copy_to_selected_list().
Definition at line 995 of file rna_access.c.
References StructRNA::functions.
Referenced by bpy_class_validate_recursive(), and pyrna_subtype_set_rna().
Definition at line 948 of file rna_access.c.
References StructRNA::cont, and ContainerRNA::properties.
Referenced by bpy_class_validate_recursive(), and pyrna_srna_contains_pointer_prop_srna().
| const char* RNA_struct_ui_description | ( | const StructRNA * | type | ) |
Definition at line 746 of file rna_access.c.
Referenced by template_ID(), UI_but_string_info_get(), ui_def_but_operator_ptr(), and WM_operatortype_description().
| const char* RNA_struct_ui_description_raw | ( | const StructRNA * | type | ) |
Definition at line 751 of file rna_access.c.
References type.
| int RNA_struct_ui_icon | ( | const StructRNA * | type | ) |
Definition at line 738 of file rna_access.c.
References type.
Referenced by buttons_context_compute(), buttons_panel_context_draw(), buttons_texture_modifier_foreach(), buttons_texture_modifier_geonodes_users_add(), buttons_texture_modifier_gpencil_foreach(), buttons_texture_users_find_nodetree(), buttons_texture_users_from_context(), draw_constraint_header(), getname_anim_fcurve(), gpencil_modifier_panel_header(), modifier_panel_header(), nla_panel_animdata(), shaderfx_panel_header(), template_add_button_search_menu(), tree_element_get_icon(), UI_icon_from_id(), uiDefAutoButR(), uiItemPointerR_prop(), and uiTemplateList().
| const char* RNA_struct_ui_name | ( | const StructRNA * | type | ) |
Definition at line 728 of file rna_access.c.
References CTX_IFACE_, and type.
Referenced by BPy_CollectionProperty(), BPy_PointerProperty(), getname_anim_fcurve(), outliner_add_element(), template_ID_search_menu_item_tooltip(), and WM_operatortype_name().
| const char* RNA_struct_ui_name_raw | ( | const StructRNA * | type | ) |
Definition at line 733 of file rna_access.c.
References type.
| bool RNA_struct_undo_check | ( | const StructRNA * | type | ) |
Definition at line 802 of file rna_access.c.
References STRUCT_UNDO, and type.
Referenced by eyedropper_colorband_init(), and ui_but_is_rna_undo().
| StructUnregisterFunc RNA_struct_unregister | ( | StructRNA * | type | ) |
Definition at line 1005 of file rna_access.c.
Referenced by pyrna_unregister_class().
|
static |
Definition at line 5040 of file rna_access.c.
References len.
Referenced by rna_path_parse(), rna_path_parse_array_index(), and rna_path_parse_collection_key().
| const char* RNA_translate_ui_text | ( | const char * | text, |
| const char * | text_ctxt, | ||
| StructRNA * | type, | ||
| PropertyRNA * | prop, | ||
| int | translate | ||
| ) |
Definition at line 8024 of file rna_access.c.
References rna_translate_ui_text(), and type.
|
static |
Definition at line 535 of file rna_access.c.
Referenced by rna_ensure_property(), and rna_property_rna_or_id_get().
| const PointerRNA PointerRNA_NULL = {NULL} |
Definition at line 71 of file rna_access.c.
Referenced by add_nodes(), CTX_data_pointer_get(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), driver_get_variable_property(), ED_animedit_unlink_action(), eyedropper_colorband_init(), lib_id_fake_user_toggle_exec(), object_fluid_gas_domain_find(), object_fluid_liquid_domain_find(), object_mesh_cache_find(), object_to_mesh(), pyrna_prop_collection_ass_subscript_int(), pyrna_py_to_prop(), BlenderSession::reset_session(), rna_array_lookup_int(), RNA_parameter_list_create(), RNA_pointer_get(), rna_pointer_inherit_refine(), RNA_property_pointer_get(), RNA_property_pointer_get_default(), blender::deg::RNAPathKey::RNAPathKey(), ui_but_string_set(), ui_do_but_COLOR(), uiItemFullO(), and WM_gizmo_target_property_clear_rna_ptr().
|
static |
Definition at line 8187 of file rna_access.c.
Referenced by RNA_struct_state_owner_get(), and RNA_struct_state_owner_set().
|
static |
Definition at line 522 of file rna_access.c.
Referenced by rna_ensure_property(), and rna_property_rna_or_id_get().