Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | OBJECT_ADD_SIZE_MAXF 1.0e12f |
Typedefs | |
typedef enum eParentType | eParentType |
typedef enum eObjectSelect_Mode | eObjectSelect_Mode |
typedef enum eObClearParentTypes | eObClearParentTypes |
typedef enum eObjectPathCalcRange | eObjectPathCalcRange |
Enumerations | |
enum | { XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM = 1 , XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM_INDIRECT = 3 , XFORM_OB_SKIP_CHILD_PARENT_APPLY = 2 } |
enum | eParentType { PAR_OBJECT , PAR_ARMATURE , PAR_ARMATURE_NAME , PAR_ARMATURE_ENVELOPE , PAR_ARMATURE_AUTO , PAR_BONE , PAR_BONE_RELATIVE , PAR_CURVE , PAR_FOLLOW , PAR_PATH_CONST , PAR_LATTICE , PAR_VERTEX , PAR_VERTEX_TRI } |
enum | eObjectSelect_Mode { BA_DESELECT = 0 , BA_SELECT = 1 , BA_INVERT = 2 } |
enum | eObClearParentTypes { CLEAR_PARENT_ALL = 0 , CLEAR_PARENT_KEEP_TRANSFORM , CLEAR_PARENT_INVERSE } |
enum | { EM_FREEDATA = (1 << 0) , EM_NO_CONTEXT = (1 << 1) } |
enum | eObjectPathCalcRange { OBJECT_PATH_CALC_RANGE_CURRENT_FRAME , OBJECT_PATH_CALC_RANGE_CHANGED , OBJECT_PATH_CALC_RANGE_FULL } |
enum | { MODIFIER_APPLY_DATA = 1 , MODIFIER_APPLY_SHAPE } |
#define OBJECT_ADD_SIZE_MAXF 1.0e12f |
Avoid allowing too much insane values even by typing (typos can hang/crash Blender otherwise).
Definition at line 341 of file ED_object.h.
typedef enum eObClearParentTypes eObClearParentTypes |
typedef enum eObjectPathCalcRange eObjectPathCalcRange |
typedef enum eObjectSelect_Mode eObjectSelect_Mode |
typedef enum eParentType eParentType |
anonymous enum |
Enumerator | |
---|---|
XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM | The parent is transformed, this is held in place. |
XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM_INDIRECT | The same as XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM, however this objects parent isn't transformed directly. |
XFORM_OB_SKIP_CHILD_PARENT_APPLY | Use the parent invert matrix to apply transformation, this is needed, because breaks in the selection chain prevents this from being transformed. This is used to add the transform which would have been added if there weren't breaks in the parent/child chain. |
Definition at line 93 of file ED_object.h.
anonymous enum |
Enumerator | |
---|---|
EM_FREEDATA | |
EM_NO_CONTEXT |
Definition at line 241 of file ED_object.h.
anonymous enum |
Enumerator | |
---|---|
MODIFIER_APPLY_DATA | |
MODIFIER_APPLY_SHAPE |
Definition at line 505 of file ED_object.h.
enum eObClearParentTypes |
Enumerator | |
---|---|
CLEAR_PARENT_ALL | |
CLEAR_PARENT_KEEP_TRANSFORM | |
CLEAR_PARENT_INVERSE |
Definition at line 159 of file ED_object.h.
enum eObjectPathCalcRange |
Enumerator | |
---|---|
OBJECT_PATH_CALC_RANGE_CURRENT_FRAME | |
OBJECT_PATH_CALC_RANGE_CHANGED | |
OBJECT_PATH_CALC_RANGE_FULL |
Definition at line 396 of file ED_object.h.
enum eObjectSelect_Mode |
Enumerator | |
---|---|
BA_DESELECT | |
BA_SELECT | |
BA_INVERT |
Definition at line 153 of file ED_object.h.
enum eParentType |
Enumerator | |
---|---|
PAR_OBJECT | |
PAR_ARMATURE | |
PAR_ARMATURE_NAME | |
PAR_ARMATURE_ENVELOPE | |
PAR_ARMATURE_AUTO | |
PAR_BONE | |
PAR_BONE_RELATIVE | |
PAR_CURVE | |
PAR_FOLLOW | |
PAR_PATH_CONST | |
PAR_LATTICE | |
PAR_VERTEX | |
PAR_VERTEX_TRI |
Definition at line 137 of file ED_object.h.
Referenced by hide_collections_menu_draw().
void ED_keymap_object | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 314 of file object_ops.c.
References object_mode_poll(), wmKeyMap::poll, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Find the correct active object per context (context.object
or context.active_object
)
Referenced by childof_clear_inverse_exec(), childof_set_inverse_exec(), constraint_apply_exec(), constraint_copy_exec(), constraint_copy_to_selected_exec(), constraint_copy_to_selected_poll(), constraint_delete_exec(), constraint_move_down_exec(), constraint_move_to_index_exec(), constraint_move_up_exec(), constraint_ops_extra_draw(), copy_particle_systems_exec(), copy_particle_systems_poll(), correctivesmooth_bind_exec(), blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_exec(), blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_poll(), dash_segment_add_exec(), dash_segment_move_exec(), dash_segment_remove_exec(), data_transfer_exec(), data_transfer_poll(), datalayout_transfer_exec(), dt_layers_select_src_itemf(), duplicate_particle_systems_exec(), duplicate_particle_systems_poll(), ED_mesh_context(), ED_operator_object_active(), ED_operator_object_active_editable(), ED_operator_object_active_editable_font(), ED_operator_object_active_editable_mesh(), ED_operator_object_active_local_editable(), ED_operator_object_active_local_editable_posemode_exclusive(), ED_operator_outliner_active_no_editobject(), ED_operator_posemode_exclusive(), ED_operator_rigidbody_active_poll(), ED_operator_rigidbody_add_poll(), ED_operator_rigidbody_con_active_poll(), edit_constraint_invoke_properties(), edit_constraint_poll_generic(), edit_modifier_poll_generic(), edit_shaderfx_poll_generic(), explode_refresh_exec(), fluid_free_exec(), fluid_initjob(), fluid_pause_exec(), followpath_path_animate_exec(), geometry_node_tree_copy_assign_exec(), geometry_nodes_input_attribute_toggle_exec(), get_new_constraint_target(), gpencil_edit_modifier_poll_generic(), gpencil_modifier_add_exec(), gpencil_modifier_add_itemf(), gpencil_modifier_apply_exec(), gpencil_modifier_copy_exec(), gpencil_modifier_copy_to_selected_exec(), gpencil_modifier_copy_to_selected_poll(), gpencil_modifier_move_down_exec(), gpencil_modifier_move_to_index_exec(), gpencil_modifier_move_up_exec(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_remove_exec(), gpencil_modifier_ui_poll(), gpencil_shaderfx_ops_extra_draw(), laplaciandeform_bind_exec(), limitdistance_reset_exec(), make_links_data_exec(), make_override_library_invoke(), meshdeform_bind_exec(), modifier_add_exec(), modifier_add_itemf(), modifier_apply_exec_ex(), modifier_apply_invoke(), modifier_apply_poll(), modifier_convert_exec(), modifier_copy_exec(), modifier_copy_to_selected_exec(), modifier_copy_to_selected_poll(), modifier_move_down_exec(), modifier_move_to_index_exec(), modifier_move_up_exec(), modifier_ops_extra_draw(), modifier_remove_exec(), modifier_set_active_exec(), modifier_ui_poll(), multires_base_apply_exec(), multires_external_pack_exec(), multires_external_save_exec(), multires_external_save_invoke(), multires_higher_levels_delete_exec(), multires_rebuild_subdiv_exec(), multires_reshape_exec(), multires_subdivide_exec(), multires_unsubdivide_exec(), object_constraint_add_exec(), object_constraint_copy_exec(), object_transform_apply_invoke(), objectsolver_clear_inverse_exec(), objectsolver_set_inverse_exec(), ocean_bake_exec(), parent_noinv_set_exec(), parent_set_exec(), parent_set_invoke_menu(), pose_constraint_add_exec(), proj_paint_add_slot(), rigidbody_object_add_exec(), rigidbody_object_remove_exec(), shaderfx_add_exec(), shaderfx_add_itemf(), shaderfx_copy_exec(), shaderfx_move_down_exec(), shaderfx_move_to_index_exec(), shaderfx_move_up_exec(), shaderfx_remove_exec(), shaderfx_ui_poll(), stretchto_reset_exec(), surfacedeform_bind_exec(), texture_paint_add_texture_paint_slot_invoke(), texture_paint_add_texture_paint_slot_ui(), track_set_exec(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().
struct Base* ED_object_add_duplicate | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer, | ||
struct Base * | base, | ||
eDupli_ID_Flags | dupflag | ||
) |
Single object duplicate, if dupflag == 0
, fully linked, else it uses the flags given. Leaves selection of base/object unaltered.
DAG_relations_tag_update(bmain);
this is not done automatic since we may duplicate many objects in a batch. Definition at line 3632 of file object_add.cc.
References BKE_libblock_relink_to_newid(), BKE_main_id_newptr_and_tag_clear(), BKE_object_is_in_editmode(), Object::data, DEG_id_tag_update_ex(), Object::id, ID_RECALC_EDITORS, ID_REMAP_FORCE_OBDATA_IN_EDITMODE, LIB_ID_DUPLICATE_IS_ROOT_ID, LIB_ID_DUPLICATE_IS_SUBPROCESS, Base::object, object_add_duplicate_internal(), and scene.
Referenced by gpencil_stroke_separate_exec(), mesh_separate_arrays(), mesh_separate_tagged(), separate_armature_exec(), and separate_exec().
bool ED_object_add_generic_get_opts | ( | struct bContext * | C, |
struct wmOperator * | op, | ||
char | view_align_axis, | ||
float | r_loc[3], | ||
float | r_rot[3], | ||
float | r_scale[3], | ||
bool * | r_enter_editmode, | ||
unsigned short * | r_local_view_bits, | ||
bool * | r_is_view_aligned | ||
) |
Definition at line 457 of file object_add.cc.
References ALIGN_CURSOR, ALIGN_VIEW, ALIGN_WORLD, BKE_scene_cursor_rot_to_mat3(), C, copy_v3_fl(), CTX_data_scene(), CTX_wm_view3d(), Scene::cursor, ED_object_location_from_view(), ED_object_rotation_from_view(), View3D::local_view_uuid, View3D::localvd, mat3_normalized_to_eul(), wmOperator::ptr, RNA_float_get_array(), RNA_float_set_array(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_get_array(), RNA_property_float_set_array(), RNA_property_is_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), scene, USER_ADD_CURSORALIGNED, USER_ADD_EDITMODE, and USER_ADD_VIEWALIGNED.
Referenced by 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(), collection_add_info_get_from_op(), curvesurf_prim_add(), effector_add_exec(), empty_drop_named_image_invoke(), lightprobe_add_exec(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_camera_add_exec(), object_curves_empty_hair_add_exec(), object_curves_random_add_exec(), object_data_instance_add_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_light_add_exec(), object_metaball_add_exec(), object_pointcloud_add_exec(), object_speaker_add_exec(), and object_volume_add().
void ED_object_add_generic_props | ( | struct wmOperatorType * | ot, |
bool | do_editmode | ||
) |
Definition at line 399 of file object_add.cc.
References align_options, ALIGN_WORLD, DEG2RADF, OBJECT_ADD_SIZE_MAXF, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_float_rotation(), RNA_def_float_vector_xyz(), RNA_def_property_flag(), RNA_def_property_update_runtime(), wmOperatorType::srna, and view_align_update().
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_camera_add(), OBJECT_OT_collection_external_asset_drop(), OBJECT_OT_collection_instance_add(), OBJECT_OT_curves_empty_hair_add(), OBJECT_OT_curves_random_add(), OBJECT_OT_data_instance_add(), OBJECT_OT_drop_named_image(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_gpencil_add(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_metaball_add(), OBJECT_OT_pointcloud_add(), OBJECT_OT_speaker_add(), OBJECT_OT_text_add(), OBJECT_OT_volume_add(), OBJECT_OT_volume_import(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), and SURFACE_OT_primitive_nurbs_surface_torus_add().
void ED_object_add_mesh_props | ( | struct wmOperatorType * | ot | ) |
Definition at line 452 of file object_add.cc.
References ot, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), and MESH_OT_primitive_uv_sphere_add().
struct Object* ED_object_add_type | ( | struct bContext * | C, |
int | type, | ||
const char * | name, | ||
const float | loc[3], | ||
const float | rot[3], | ||
bool | enter_editmode, | ||
unsigned short | local_view_bits | ||
) |
Definition at line 668 of file object_add.cc.
References C, ED_object_add_type_with_obdata(), rot, and type.
Referenced by collection_drop_exec(), collection_instance_add_exec(), collection_instance_exec(), blender::io::gpencil::GpencilImporter::create_object(), curvesurf_prim_add(), ED_gpencil_add_object(), effector_add_exec(), empty_drop_named_image_invoke(), geometry_extract_apply(), lightprobe_add_exec(), make_prim_init(), object_add_exec(), object_add_text_exec(), object_armature_add_exec(), object_camera_add_exec(), object_curves_empty_hair_add_exec(), object_curves_random_add_exec(), object_empty_add_exec(), object_gpencil_add_exec(), object_light_add_exec(), object_metaball_add_exec(), object_pointcloud_add_exec(), object_speaker_add_exec(), object_volume_add(), and paint_mask_slice_exec().
struct Object* ED_object_add_type_with_obdata | ( | struct bContext * | C, |
int | type, | ||
const char * | name, | ||
const float | loc[3], | ||
const float | rot[3], | ||
bool | enter_editmode, | ||
ushort | local_view_bits, | ||
struct ID * | obdata | ||
) |
For object add primitive operators, or for object creation when obdata != NULL
.
obdata | Assigned to Object.data, with increased user count. |
Definition at line 598 of file object_add.cc.
References BASACT, BKE_id_material_len_p(), BKE_object_add(), BKE_object_add_for_data(), BKE_object_materials_test(), BKE_object_obdata_to_type(), BLI_assert, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, DEG_id_tag_update(), DEG_id_tag_update_ex(), DEG_id_type_tag(), DEG_relations_tag_update(), ED_object_base_activate(), ED_object_base_init_transform_on_add(), ED_object_editmode_enter_ex(), ED_object_editmode_exit_ex(), ED_outliner_select_sync_from_object_tag(), EM_FREEDATA, Scene::id, ID_OB, ID_RECALC_EDITORS, Base::local_view_bits, NC_SCENE, ND_LAYER_CONTENT, OBEDIT_FROM_VIEW_LAYER, rot, scene, type, and WM_event_add_notifier().
Referenced by ED_object_add_type(), and object_data_instance_add_exec().
void ED_object_add_unit_props_radius | ( | struct wmOperatorType * | ot | ) |
Definition at line 394 of file object_add.cc.
References ED_object_add_unit_props_radius_ex(), and ot.
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_uv_sphere_add(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_gpencil_add(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_text_add(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), and SURFACE_OT_primitive_nurbs_surface_torus_add().
void ED_object_add_unit_props_radius_ex | ( | struct wmOperatorType * | ot, |
float | default_value | ||
) |
Definition at line 388 of file object_add.cc.
References OBJECT_ADD_SIZE_MAXF, ot, RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by ED_object_add_unit_props_radius(), and OBJECT_OT_metaball_add().
void ED_object_add_unit_props_size | ( | struct wmOperatorType * | ot | ) |
Definition at line 382 of file object_add.cc.
References OBJECT_ADD_SIZE_MAXF, ot, RNA_def_float_distance(), and wmOperatorType::srna.
Referenced by MESH_OT_primitive_cube_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_monkey_add(), and MESH_OT_primitive_plane_add().
Object** ED_object_array_in_mode_or_selected | ( | struct bContext * | C, |
bool(*)(const struct Object *ob, void *user_data) | filter_fn, | ||
void * | filter_user_data, | ||
uint * | r_objects_len | ||
) |
Return an array of objects:
Referenced by object_array_for_shading_edit_mode_disabled(), object_array_for_shading_edit_mode_enabled(), and object_array_for_wpaint().
Change active base, it includes the notifier
Definition at line 110 of file object_select.c.
References ViewLayer::basact, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_object_base_active_refresh(), and scene.
Referenced by bone_select_menu_exec(), duplicate_exec(), ED_armature_edit_select_pick_bone(), ED_curve_editnurb_select_pick(), ED_lattice_select_pick(), ED_mball_select_pick(), ED_object_add_type_with_obdata(), ED_object_base_activate_with_mode_exit_if_needed(), ED_object_jump_to_object(), ed_object_select_pick(), ed_undo_step_post(), edbm_polybuild_delete_at_cursor_invoke(), edbm_polybuild_dissolve_at_cursor_invoke(), edbm_polybuild_face_at_cursor_invoke(), edbm_polybuild_split_at_cursor_invoke(), edbm_polybuild_transform_at_cursor_invoke(), EDBM_select_pick(), edbm_shortest_path_pick_invoke(), edcu_shortest_path_pick_invoke(), gpencil_trace_image_exec(), object_add_named_exec(), object_convert_exec(), object_select_menu_exec(), select_grouped_parent(), and select_marker_camera_switch().
Definition at line 118 of file object_select.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_object_base_activate(), ED_object_editmode_exit_multi_ex(), EM_FREEDATA, Object::mode, OB_MODE_EDIT, OBEDIT_FROM_VIEW_LAYER, Base::object, scene, and Object::type.
Referenced by click_select_channel_object(), mouse_nla_channels(), and tree_element_object_activate().
void ED_object_base_active_refresh | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer | ||
) |
Call when the active base has changed.
Definition at line 100 of file object_select.c.
References blender::compositor::active, DEG_id_tag_update(), ListBase::first, Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_ACTIVE, NULL, scene, Main::wm, WM_main_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by ED_object_base_activate(), and ED_undo_object_set_active_or_warn().
Definition at line 193 of file object_select.c.
References ED_object_base_deselect_all_ex(), and NULL.
Referenced by ED_object_jump_to_object(), object_add_named_exec(), object_select_by_type_exec(), object_select_grouped_exec(), and object_select_linked_exec().
bool ED_object_base_deselect_all_ex | ( | struct ViewLayer * | view_layer, |
struct View3D * | v3d, | ||
int | action, | ||
bool * | r_any_visible | ||
) |
Definition at line 135 of file object_select.c.
References BA_DESELECT, BA_SELECT, BASE_SELECTED, ED_object_base_select(), FOREACH_VISIBLE_BASE_BEGIN, FOREACH_VISIBLE_BASE_END, View3D::object_type_exclude_select, SEL_DESELECT, SEL_INVERT, SEL_SELECT, and SEL_TOGGLE.
Referenced by ED_object_base_deselect_all(), and object_select_all_exec().
void ED_object_base_free_and_unlink | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Remove base from a specific scene.
Definition at line 2190 of file object_add.cc.
References BKE_lib_override_library_id_is_user_deletable(), BKE_library_ID_is_indirectly_used(), BKE_scene_collections_object_remove(), DEG_id_tag_update_ex(), Object::id, ID_EXTRA_USERS, ID_REAL_USERS, ID_RECALC_BASE_FLAGS, ID::name, and scene.
Referenced by ED_armature_join_objects_exec(), ED_curve_join_objects_exec(), ED_gpencil_join_objects_exec(), ED_mesh_join_objects_exec(), id_override_library_create_hierarchy(), make_override_library_exec(), and object_convert_exec().
void ED_object_base_free_and_unlink_no_indirect_check | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Remove base from a specific scene. ob
must not be indirectly used.
Definition at line 2211 of file object_add.cc.
References BKE_library_ID_is_indirectly_used(), BKE_scene_collections_object_remove(), BLI_assert, DEG_id_tag_update_ex(), Object::id, ID_RECALC_BASE_FLAGS, and scene.
Referenced by object_delete_exec().
void ED_object_base_init_transform_on_add | ( | struct Object * | object, |
const float | loc[3], | ||
const float | rot[3] | ||
) |
Definition at line 315 of file object_add.cc.
References BKE_object_to_mat4(), copy_v3_v3(), Object::loc, Object::obmat, rot, and Object::rot.
Referenced by ED_object_add_type_with_obdata(), and txt_add_object().
void ED_object_base_select | ( | struct Base * | base, |
eObjectSelect_Mode | mode | ||
) |
Simple API for object selection, rather than just using the flag this takes into account the 'restrict selection in 3d view' flag. deselect works always, the restriction just prevents selection
NC_SCENE | ND_OB_SELECT
notifier (or a NC_SCENE | ND_OB_VISIBLE
in case of visibility toggling). Definition at line 76 of file object_select.c.
References BA_DESELECT, BA_INVERT, BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_scene_object_base_flag_sync_from_base(), and Base::flag.
Referenced by bone_select_menu_exec(), clear_trans_object_base_flags(), click_select_channel_object(), do_lasso_select_objects(), do_object_box_select(), do_outliner_item_activate_tree_element(), do_outliner_item_editmode_toggle(), do_outliner_item_posemode_toggle(), do_outliner_object_select_recursive(), duplibase_for_convert(), duplicate_exec(), ED_armature_pose_select_in_wpaint_mode(), ED_object_base_deselect_all_ex(), ED_object_jump_to_object(), ed_object_select_pick(), ED_undo_object_editmode_restore_helper(), get_new_constraint_target(), gpencil_layer_to_curve(), localview_remove_from_exec(), make_local_all__instance_indirect_unused(), make_object_duplilist_real(), mesh_separate_arrays(), mesh_separate_tagged(), mouse_nla_channels(), object_add_named_exec(), object_circle_select(), object_deselect_all_except(), object_deselect_all_visible(), object_hide_view_set_exec(), object_select_all_by_instance_collection(), object_select_all_by_library(), object_select_all_by_library_obdata(), object_select_all_by_material(), object_select_all_by_obdata(), object_select_all_by_particle(), object_select_by_type_exec(), object_select_fn(), object_select_menu_exec(), object_select_mirror_exec(), object_select_more_less(), object_select_random_exec(), object_select_same_collection_exec(), outliner_select_sync_to_object(), scene_drop_invoke(), select_grouped_children(), select_grouped_collection(), select_grouped_color(), select_grouped_exec(), select_grouped_index_object(), select_grouped_keyingset(), select_grouped_lighttype(), select_grouped_object_hooks(), select_grouped_parent(), select_grouped_siblings(), select_grouped_type(), select_marker_camera_switch(), and tree_element_object_activate().
Definition at line 112 of file object_utils.c.
References Object::base_flag, BASE_SELECTED, copy_v3_v3(), ED_object_calc_active_center_for_editmode(), ED_object_calc_active_center_for_posemode(), Object::mode, mul_m4_v3(), OB_MODE_EDIT, OB_MODE_POSE, and Object::obmat.
Referenced by gizmo_prepare_mat(), and snap_calc_active_center().
bool ED_object_calc_active_center_for_editmode | ( | struct Object * | obedit, |
bool | select_only, | ||
float | r_center[3] | ||
) |
Definition at line 41 of file object_utils.c.
References bArmature::act_edbone, BKE_editmesh_from_object(), BKE_lattice_active_point_get(), BMEditMesh::bm, BM_editselection_center(), BM_select_history_active_get(), BONE_ROOTSEL, BONE_SELECTED, copy_v3_v3(), Object::data, ED_curve_active_center(), EditBone::flag, MetaElem::flag, EditBone::head, MetaBall::lastelem, OB_ARMATURE, OB_CURVES_LEGACY, OB_LATTICE, OB_MBALL, OB_MESH, OB_SURF, SELECT, Object::type, BPoint::vec, and MetaElem::x.
Referenced by calculateCenterActive(), ED_object_calc_active_center(), and edbm_point_normals_modal().
bool ED_object_calc_active_center_for_posemode | ( | struct Object * | ob, |
bool | select_only, | ||
float | r_center[3] | ||
) |
Definition at line 100 of file object_utils.c.
References BKE_pose_channel_active_if_layer_visible(), bPoseChannel::bone, BONE_SELECTED, copy_v3_v3(), Bone::flag, and bPoseChannel::pose_head.
Referenced by calculateCenterActive(), and ED_object_calc_active_center().
void ED_object_check_force_modifiers | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | object | ||
) |
Definition at line 1024 of file object_edit.c.
References BKE_modifiers_findby_type(), ED_object_modifier_add(), ED_object_modifier_remove(), ELEM, eModifierType_Surface, PartDeflect::forcefield, NULL, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_SURF, PFIELD_GUIDE, PFIELD_SHAPE_SURFACE, PFIELD_TEXTURE, scene, PartDeflect::shape, and Object::type.
Referenced by forcefield_toggle_exec().
struct bConstraint* ED_object_constraint_active_get | ( | struct Object * | ob | ) |
Single constraint.
Definition at line 143 of file object_constraint.c.
References BKE_constraints_active_get(), and ED_object_constraint_active_list().
If object is in pose-mode, return active bone constraints, else object constraints. No constraints are returned for a bone on an inactive bone-layer.
Definition at line 69 of file object_constraint.c.
References BKE_pose_channel_active_if_layer_visible(), bPoseChannel::constraints, Object::constraints, Object::mode, NULL, and OB_MODE_POSE.
Referenced by ED_object_constraint_active_get(), BCAnimationSampler::find_depending_animated(), pose_constraint_add_exec(), and pose_ik_add_exec().
void ED_object_constraint_active_set | ( | struct Object * | ob, |
struct bConstraint * | con | ||
) |
Definition at line 1308 of file object_constraint.c.
References BKE_constraints_active_set(), CONSTRAINT_ACTIVE, ED_object_constraint_list_from_constraint(), bConstraint::flag, and NULL.
Referenced by constraint_active_func().
void ED_object_constraint_copy_for_object | ( | struct Main * | bmain, |
struct Object * | ob_dst, | ||
struct bConstraint * | con | ||
) |
Definition at line 1411 of file object_constraint.c.
References BKE_constraint_copy_for_object(), CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, ED_object_constraint_dependency_tag_update(), bConstraint::flag, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
void ED_object_constraint_copy_for_pose | ( | struct Main * | bmain, |
struct Object * | ob_dst, | ||
struct bPoseChannel * | pchan, | ||
struct bConstraint * | con | ||
) |
Definition at line 1420 of file object_constraint.c.
References BKE_constraint_copy_for_pose(), CONSTRAINT_OVERRIDE_LIBRARY_LOCAL, ED_object_constraint_dependency_tag_update(), bConstraint::flag, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
void ED_object_constraint_dependency_tag_update | ( | struct Main * | bmain, |
struct Object * | ob, | ||
struct bConstraint * | con | ||
) |
Definition at line 1375 of file object_constraint.c.
References DEG_relations_tag_update(), ED_object_constraint_tag_update(), object_pose_tag_update(), and Object::pose.
Referenced by ED_object_constraint_copy_for_object(), ED_object_constraint_copy_for_pose(), and ED_object_constraint_link().
Definition at line 1342 of file object_constraint.c.
References DEG_relations_tag_update(), ED_object_constraint_update(), object_pose_tag_update(), and Object::pose.
void ED_object_constraint_link | ( | struct Main * | bmain, |
struct Object * | ob_dst, | ||
struct ListBase * | dst, | ||
struct ListBase * | src | ||
) |
Definition at line 1401 of file object_constraint.c.
References BKE_constraints_copy(), BKE_constraints_free(), ED_object_constraint_dependency_tag_update(), LISTBASE_FOREACH, NA_ADDED, NC_OBJECT, ND_CONSTRAINT, NULL, src, and WM_main_add_notifier().
Referenced by datastack_drop_link().
struct ListBase* ED_object_constraint_list_from_constraint | ( | struct Object * | ob, |
struct bConstraint * | con, | ||
struct bPoseChannel ** | r_pchan | ||
) |
Find the list that a given constraint belongs to, and/or also get the posechannel this is from (if applicable).
Definition at line 103 of file object_constraint.c.
References BLI_findindex(), bPose::chanbase, bPoseChannel::constraints, Object::constraints, ELEM, ListBase::first, bPoseChannel::next, NULL, and Object::pose.
Referenced by constraint_apply_exec(), constraint_copy_exec(), constraint_copy_to_selected_exec(), constraint_copy_to_selected_poll(), constraint_delete_exec(), constraint_move_down_exec(), constraint_move_up_exec(), constraint_ops_extra_draw(), ED_object_constraint_active_set(), ED_object_constraint_move_to_index(), and edit_constraint_invoke_properties().
bool ED_object_constraint_move_to_index | ( | struct Object * | ob, |
struct bConstraint * | con, | ||
int | index | ||
) |
Definition at line 1385 of file object_constraint.c.
References BLI_assert, BLI_findindex(), BLI_listbase_link_move(), ED_object_constraint_list_from_constraint(), NC_OBJECT, ND_CONSTRAINT, NULL, and WM_main_add_notifier().
Referenced by constraint_move_to_index_exec(), and datastack_drop_reorder().
void ED_object_constraint_tag_update | ( | struct Main * | bmain, |
struct Object * | ob, | ||
struct bConstraint * | con | ||
) |
Definition at line 1352 of file object_constraint.c.
References BKE_pose_tag_update_constraint_flags(), DEG_id_tag_update(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, OB_ARMATURE, object_test_constraint(), Object::pose, and Object::type.
Referenced by ED_object_constraint_dependency_tag_update().
Definition at line 1321 of file object_constraint.c.
References BKE_pose_update_constraint_flags(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, OB_ARMATURE, object_test_constraints(), Object::pose, and Object::type.
Referenced by childof_clear_inverse_exec(), childof_set_inverse_exec(), constraint_apply_exec(), constraint_copy_exec(), constraint_delete_exec(), constraint_fn(), constraint_move_down_exec(), constraint_move_to_index_exec(), constraint_move_up_exec(), ED_object_constraint_dependency_update(), limitdistance_reset_exec(), objectsolver_clear_inverse_exec(), objectsolver_set_inverse_exec(), and stretchto_reset_exec().
context.object
Referenced by add_attribute_search_button(), collection_add_exec(), collection_link_exec(), collection_object_active_itemf(), collection_objects_remove_exec(), collection_remove_exec(), connect_hair_exec(), disconnect_hair_exec(), dynamicpaint_bake_exec(), ED_pose_object_from_context(), face_map_add_exec(), face_map_assign_exec(), face_map_deselect_exec(), face_map_move_exec(), face_map_remove_exec(), face_map_remove_from_exec(), face_map_select_exec(), face_map_supported_edit_mode_poll(), face_map_supported_poll(), face_map_supported_remove_poll(), blender::ed::geometry::geometry_attribute_add_exec(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::geometry::geometry_attribute_convert_poll(), blender::ed::geometry::geometry_attribute_domain_itemf(), blender::ed::geometry::geometry_attribute_remove_exec(), blender::ed::geometry::geometry_attributes_poll(), blender::ed::geometry::geometry_attributes_remove_poll(), blender::ed::geometry::geometry_color_attribute_add_exec(), blender::ed::geometry::geometry_color_attribute_duplicate_exec(), blender::ed::geometry::geometry_color_attribute_remove_exec(), blender::ed::geometry::geometry_color_attribute_set_render_exec(), blender::ed::geometry::geometry_color_attributes_duplicate_poll(), blender::ed::geometry::geometry_color_attributes_remove_poll(), get_poselib_object(), layers_poll(), material_slot_add_exec(), material_slot_copy_exec(), material_slot_move_exec(), material_slot_remove_exec(), mesh_customdata_mask_clear_poll(), mesh_customdata_skin_add_exec(), mesh_customdata_skin_state(), mesh_sculpt_vertex_color_add_exec(), mesh_sculpt_vertex_color_remove_exec(), mesh_uv_texture_add_exec(), mesh_uv_texture_remove_exec(), mesh_vertex_color_add_exec(), mesh_vertex_color_remove_exec(), object_materials_supported_poll(), objects_add_active_exec(), output_toggle_exec(), particle_system_add_exec(), particle_system_remove_exec(), sculpt_vertex_color_remove_poll(), set_active_group_exec(), shape_key_add_exec(), shape_key_clear_exec(), shape_key_mirror_exec(), shape_key_mode_exists_poll(), shape_key_mode_poll(), shape_key_move_exec(), shape_key_move_poll(), shape_key_poll(), shape_key_remove_exec(), shape_key_retime_exec(), surface_slot_add_exec(), surface_slot_remove_exec(), type_toggle_exec(), uv_texture_remove_poll(), vertex_color_remove_poll(), vertex_group_add_exec(), vertex_group_assign_exec(), vertex_group_assign_new_exec(), vertex_group_copy_exec(), vertex_group_copy_to_selected_exec(), vertex_group_deselect_exec(), vertex_group_invert_exec(), vertex_group_levels_exec(), vertex_group_mesh_with_dvert_poll(), vertex_group_mirror_exec(), vertex_group_normalize_all_exec(), vertex_group_normalize_exec(), vertex_group_poll(), vertex_group_poll_edit(), vertex_group_quantize_exec(), vertex_group_remove_exec(), vertex_group_remove_from_exec(), vertex_group_select_exec(), vertex_group_sort_exec(), vertex_group_supported_poll(), vertex_group_vert_poll_ex(), vertex_group_vert_select_mesh_poll(), vertex_group_vert_select_unlocked_poll(), vertex_weight_copy_exec(), vertex_weight_delete_exec(), vertex_weight_normalize_active_vertex_exec(), vertex_weight_paste_exec(), vertex_weight_set_active_exec(), vgroup_itemf(), and vgroup_move_exec().
void ED_object_data_xform_by_mat4 | ( | struct XFormObjectData * | xod, |
const float | mat[4][4] | ||
) |
Definition at line 522 of file object_data_transform.c.
References armature_coords_and_quats_apply_with_mat4(), BKE_curve_nurbs_vert_coords_apply_with_mat4(), BKE_gpencil_point_coords_apply_with_mat4(), BKE_keyblock_curve_data_set_with_mat4(), BKE_keyblock_data_set_with_mat4(), BKE_lattice_vert_coords_apply_with_mat4(), BKE_mesh_vert_coords_apply_with_mat4(), BLI_assert, BMEditMesh::bm, bm, BM_mesh_vert_coords_apply_with_mat4(), CU_IS_2D, edit_armature_coords_and_quats_apply_with_mat4(), Mesh::edit_mesh, Lattice::editlatt, Curve::editnurb, GS, XFormObjectData::id, ID_AR, ID_CU_LEGACY, ID_GD, ID_LT, ID_MB, ID_ME, XFormObjectData::is_edit_mode, Curve::key, Mesh::key, EditLatt::latt, metaball_coords_and_quats_apply_with_mat4(), ID::name, NULL, Curve::nurb, and EditNurb::nurbs.
Referenced by ED_object_data_xform_container_update_all().
struct XFormObjectData_Container* ED_object_data_xform_container_create | ( | void | ) |
Definition at line 402 of file object_utils.c.
References BLI_ghash_ptr_new(), MEM_callocN, and XFormObjectData_Container::obdata_in_obmode_map.
Referenced by createTransObject(), object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_data_xform_container_destroy | ( | struct XFormObjectData_Container * | xds | ) |
Definition at line 409 of file object_utils.c.
References BLI_ghash_free(), MEM_freeN, NULL, XFormObjectData_Container::obdata_in_obmode_map, and trans_obdata_in_obmode_free_elem().
Referenced by freeTransObjectCustomData(), object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_data_xform_container_item_ensure | ( | struct XFormObjectData_Container * | xds, |
struct Object * | ob | ||
) |
Definition at line 341 of file object_utils.c.
References BLI_ghash_ensure_p(), BLI_ghash_ptr_new(), copy_m4_m4(), Object::data, ED_object_data_xform_create(), MEM_mallocN, NULL, XFormObjectData_Extra::ob, XFormObjectData_Container::obdata_in_obmode_map, Object::obmat, XFormObjectData_Extra::obmat_orig, and XFormObjectData_Extra::xod.
Referenced by createTransObject(), object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_data_xform_container_update_all | ( | struct XFormObjectData_Container * | xds, |
struct Main * | bmain, | ||
struct Depsgraph * | depsgraph | ||
) |
This may be called multiple times with the same data. Each time, the original transformations are re-applied, instead of accumulating the changes.
Definition at line 358 of file object_utils.c.
References BKE_scene_graph_evaluated_ensure(), BLI_ghashIterator_getKey(), BLI_ghashIterator_getValue(), DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, ED_object_data_xform_by_mat4(), GHASH_ITER, ID_RECALC_GEOMETRY, invert_m4(), invert_m4_m4(), mul_m4_m4m4(), NULL, XFormObjectData_Extra::ob, OB_ARMATURE, XFormObjectData_Container::obdata_in_obmode_map, Object::obmat, XFormObjectData_Extra::obmat_orig, Object::type, and XFormObjectData_Extra::xod.
Referenced by object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), snap_selected_to_location(), and trans_obdata_in_obmode_update_all().
struct XFormObjectData* ED_object_data_xform_create | ( | struct ID * | id | ) |
Definition at line 481 of file object_data_transform.c.
References ED_object_data_xform_create_ex().
Referenced by ED_object_data_xform_container_item_ensure().
struct XFormObjectData* ED_object_data_xform_create_ex | ( | struct ID * | id, |
bool | is_edit_mode | ||
) |
Definition at line 304 of file object_data_transform.c.
References armature_coords_and_quats_get(), XFormObjectData_Mesh::base, XFormObjectData_Lattice::base, XFormObjectData_Curve::base, XFormObjectData_GPencil::base, XFormObjectData_MetaBall::base, XFormObjectData_Armature::base, BKE_armature_bonelist_count(), BKE_curve_nurbs_vert_coords_get(), BKE_curve_type_get(), BKE_gpencil_point_coords_get(), BKE_gpencil_stroke_point_count(), BKE_keyblock_data_get_from_shape(), BKE_keyblock_element_calc_size_from_shape(), BKE_lattice_vert_coords_get(), BKE_mesh_vert_coords_get(), BKE_nurbList_verts_count(), BLI_listbase_count(), BMEditMesh::bm, bm, BM_mesh_vert_coords_get(), bArmature::bonebase, bArmature::edbo, edit_armature_coords_and_quats_get(), Mesh::edit_mesh, Lattice::editlatt, Curve::editnurb, XFormObjectData_GPencil::elem_array, XFormObjectData_Armature::elem_array, XFormObjectData_MetaBall::elem_array, XFormObjectData_Mesh::elem_array, XFormObjectData_Lattice::elem_array, XFormObjectData_Curve::elem_array, MetaBall::elems, GS, id, XFormObjectData::id, ID_AR, ID_CU_LEGACY, ID_GD, ID_LT, ID_MB, ID_ME, XFormObjectData::is_edit_mode, Curve::key, Lattice::key, Mesh::key, XFormObjectData_Mesh::key_data, XFormObjectData_Lattice::key_data, XFormObjectData_Curve::key_data, EditLatt::latt, MEM_mallocN, metaball_coords_and_quats_get(), ID::name, NULL, Curve::nurb, EditNurb::nurbs, OB_FONT, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, BMesh::totvert, and Mesh::totvert.
Referenced by ED_object_data_xform_create(), and ED_object_data_xform_create_from_edit_mode().
struct XFormObjectData* ED_object_data_xform_create_from_edit_mode | ( | ID * | id | ) |
Definition at line 486 of file object_data_transform.c.
References ED_object_data_xform_create_ex().
Referenced by op_generic_value_invoke().
void ED_object_data_xform_destroy | ( | struct XFormObjectData * | xod_base | ) |
Definition at line 491 of file object_data_transform.c.
References GS, XFormObjectData::id, ID_CU_LEGACY, ID_LT, ID_ME, XFormObjectData_Mesh::key_data, XFormObjectData_Lattice::key_data, XFormObjectData_Curve::key_data, MEM_freeN, ID::name, and NULL.
Referenced by op_generic_value_exit(), and trans_obdata_in_obmode_free_elem().
void ED_object_data_xform_restore | ( | struct XFormObjectData * | xod | ) |
Definition at line 627 of file object_data_transform.c.
References armature_coords_and_quats_apply(), BKE_curve_nurbs_vert_coords_apply(), BKE_gpencil_point_coords_apply(), BKE_keyblock_data_set(), BKE_lattice_vert_coords_apply(), BKE_mesh_vert_coords_apply(), BMEditMesh::bm, bm, BM_mesh_vert_coords_apply(), CU_IS_2D, edit_armature_coords_and_quats_apply(), Mesh::edit_mesh, Lattice::editlatt, Curve::editnurb, GS, XFormObjectData::id, ID_AR, ID_CU_LEGACY, ID_GD, ID_LT, ID_MB, ID_ME, XFormObjectData::is_edit_mode, Curve::key, Mesh::key, EditLatt::latt, metaball_coords_and_quats_apply(), ID::name, NULL, Curve::nurb, and EditNurb::nurbs.
Referenced by op_generic_value_restore().
void ED_object_data_xform_tag_update | ( | struct XFormObjectData * | xod | ) |
Definition at line 726 of file object_data_transform.c.
References DEG_id_tag_update(), EDBM_update(), GS, XFormObjectData::id, bArmature::id, Curve::id, bGPdata::id, Lattice::id, Mesh::id, MetaBall::id, ID_AR, ID_CU_LEGACY, ID_GD, ID_LT, ID_MB, ID_ME, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, if(), XFormObjectData::is_edit_mode, and ID::name.
Referenced by op_generic_value_restore().
Definition at line 833 of file object_edit.c.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), ED_object_editmode_enter_ex(), and scene.
bool ED_object_editmode_enter_ex | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | ob, | ||
int | flag | ||
) |
Definition at line 734 of file object_edit.c.
References BKE_editlattice_make(), BKE_editmesh_from_object(), BKE_editmesh_looptri_and_normals_calc(), BKE_object_is_in_editmode(), BKE_object_obdata_is_libdata(), CLOG_WARN, Object::data, DEG_id_tag_update(), ED_armature_to_edit(), ED_curve_editfont_make(), ED_curve_editnurb_make(), ED_mball_editmball_make(), EDBM_mesh_make(), ELEM, EM_NO_CONTEXT, Object::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LIKELY, LOG, mesh_needs_keyindex(), Object::mode, ID::name, NC_SCENE, ND_MODE, bArmature::needs_flush_to_id, MetaBall::needs_flush_to_id, NS_EDITMODE_ARMATURE, NS_EDITMODE_CURVE, NS_EDITMODE_CURVES, NS_EDITMODE_LATTICE, NS_EDITMODE_MBALL, NS_EDITMODE_MESH, NS_EDITMODE_TEXT, NS_MODE_OBJECT, NULL, OB_ARMATURE, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_EDIT, OB_SURF, Object::restore_mode, scene, ToolSettings::selectmode, Scene::toolsettings, Object::type, and WM_main_add_notifier().
Referenced by do_outliner_item_editmode_toggle(), ED_editors_init(), ED_object_add_type_with_obdata(), ED_object_editmode_enter(), ED_undo_object_editmode_restore_helper(), editmode_toggle_exec(), effector_add_exec(), make_prim_init(), and object_armature_add_exec().
Definition at line 695 of file object_edit.c.
References C, CTX_data_edit_object(), CTX_data_main(), CTX_data_scene(), ED_object_editmode_exit_ex(), and scene.
Referenced by object_batch_delete_hierarchy_fn().
bool ED_object_editmode_exit_ex | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct Object * | obedit, | ||
int | flag | ||
) |
flag |
|
Definition at line 653 of file object_edit.c.
References BKE_particlesystem_reset_all(), BKE_ptcache_ids_from_object(), BKE_ptcache_object_reset(), BLI_freelistN(), DEG_id_tag_update(), ED_object_editmode_load_free_ex(), EM_FREEDATA, Object::id, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, LISTBASE_FOREACH, Object::mode, NC_SCENE, ND_MODE, NS_MODE_OBJECT, OB_MODE_EDIT, PTCACHE_OUTDATED, PTCACHE_RESET_OUTDATED, PTCACHE_TYPE_PARTICLES, scene, UNLIKELY, and WM_main_add_notifier().
Referenced by curvesurf_prim_add(), do_outliner_item_editmode_toggle(), ED_object_add_type_with_obdata(), ED_object_editmode_exit(), ED_object_editmode_exit_multi_ex(), ed_object_mode_generic_exit_ex(), ED_undo_object_editmode_restore_helper(), editmode_toggle_exec(), effector_add_exec(), make_prim_finish(), object_armature_add_exec(), object_metaball_add_exec(), outliner_object_delete_fn(), and posemode_exec().
Definition at line 726 of file object_edit.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_object_editmode_exit_multi_ex(), and scene.
bool ED_object_editmode_exit_multi_ex | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer, | ||
int | flag | ||
) |
Definition at line 708 of file object_edit.c.
References ED_object_editmode_exit_ex(), LISTBASE_FOREACH, Object::mode, NULL, OB_MODE_EDIT, OBEDIT_FROM_VIEW_LAYER, ViewLayer::object_bases, scene, and Object::type.
Referenced by ED_object_base_activate_with_mode_exit_if_needed(), and ED_object_editmode_exit_multi().
Support freeing edit-mode data without flushing it back to the object.
Definition at line 703 of file object_edit.c.
References ED_object_editmode_load_free_ex().
Referenced by ED_editors_exit().
Definition at line 648 of file object_edit.c.
References ED_object_editmode_load_free_ex().
Referenced by bake_targets_init_vertex_colors(), and ED_editors_flush_edits_for_object_ex().
Called while not in edit-mode.
Definition at line 40 of file object_facemap_ops.c.
References BLI_findindex(), CD_DEFAULT, CD_FACEMAP, CustomData_add_layer(), CustomData_get_layer(), Object::data, facemap, Object::fmaps, GS, ID_ME, NULL, Mesh::pdata, and Mesh::totpoly.
Called while not in edit-mode.
Definition at line 63 of file object_facemap_ops.c.
References BLI_findindex(), CD_FACEMAP, CustomData_get_layer(), Object::data, facemap, Object::fmaps, GS, ID_ME, NULL, and Mesh::pdata.
If id is not already an Object, try to find an object that uses it as data. Prefers active, then selected, then visible/selectable.
Definition at line 215 of file object_select.c.
References ViewLayer::basact, BASE_SELECTED, BLI_assert, Object::data, get_base_select_priority(), GS, id, LISTBASE_FOREACH, ID::name, NULL, OB_DATA_SUPPORT_ID, Base::object, and ViewLayer::object_bases.
Referenced by jump_to_target_ptr().
struct GpencilModifierData* ED_object_gpencil_modifier_add | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
const char * | name, | ||
int | type | ||
) |
Referenced by ED_gpencil_add_armature(), and ED_gpencil_add_lattice_modifier().
bool ED_object_gpencil_modifier_apply | ( | struct Main * | bmain, |
struct ReportList * | reports, | ||
struct Depsgraph * | depsgraph, | ||
struct Object * | ob, | ||
struct GpencilModifierData * | md, | ||
int | mode | ||
) |
Definition at line 143 of file object_gpencil_modifier.c.
References DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, gpencil_object_modifier_remove(), Object::greasepencil_modifiers, Object::id, ID_RECALC_GEOMETRY, and GpencilModifierData::next.
bool ED_object_gpencil_modifier_copy | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct GpencilModifierData * | md | ||
) |
Definition at line 294 of file object_gpencil_modifier.c.
References BKE_gpencil_modifier_copydata(), BKE_gpencil_modifier_get_info(), BKE_gpencil_modifier_new(), BKE_gpencil_modifier_unique_name(), BKE_gpencil_modifiers_findby_type(), BKE_report(), BLI_insertlinkafter(), eGpencilModifierFlag_OverrideLibrary_Local, eGpencilModifierTypeFlag_Single, GpencilModifierData::flag, GpencilModifierTypeInfo::flags, Object::greasepencil_modifiers, RPT_WARNING, type, and GpencilModifierData::type.
Referenced by gpencil_modifier_copy_exec().
void ED_object_gpencil_modifier_copy_to_object | ( | struct Object * | ob_dst, |
struct GpencilModifierData * | md | ||
) |
Definition at line 317 of file object_gpencil_modifier.c.
References BKE_object_copy_gpencil_modifier(), DEG_id_tag_update(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NC_OBJECT, ND_MODIFIER, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
bool ED_object_gpencil_modifier_move_down | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct GpencilModifierData * | md | ||
) |
bool ED_object_gpencil_modifier_move_to_index | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct GpencilModifierData * | md, | ||
int | index | ||
) |
Definition at line 190 of file object_gpencil_modifier.c.
References BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_count(), DEG_id_tag_update(), ED_object_gpencil_modifier_move_down(), ED_object_gpencil_modifier_move_up(), Object::greasepencil_modifiers, Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_MODIFIER, NULL, RPT_WARNING, and WM_main_add_notifier().
Referenced by datastack_drop_reorder(), and gpencil_modifier_move_to_index_exec().
bool ED_object_gpencil_modifier_move_up | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct GpencilModifierData * | md | ||
) |
bool ED_object_gpencil_modifier_remove | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Object * | ob, | ||
struct GpencilModifierData * | md | ||
) |
Definition at line 122 of file object_gpencil_modifier.c.
References BKE_reportf(), DEG_id_tag_update(), DEG_relations_tag_update(), gpencil_object_modifier_remove(), Object::id, ID_RECALC_GEOMETRY, GpencilModifierData::name, ID::name, and RPT_ERROR.
Referenced by gpencil_modifier_remove_exec().
bool ED_object_iter_other | ( | struct Main * | bmain, |
struct Object * | orig_ob, | ||
bool | include_orig, | ||
bool(*)(struct Object *ob, void *callback_data) | callback, | ||
void * | callback_data | ||
) |
If the object data of 'orig_ob' has other users, run 'callback' on each of them.
If include_orig is true, the callback will run on 'orig_ob' too.
If the callback ever returns true, iteration will stop and the function value will be true. Otherwise the function returns false.
Referenced by join_mesh_single().
bool ED_object_jump_to_bone | ( | struct bContext * | C, |
struct Object * | ob, | ||
const char * | bone_name, | ||
bool | reveal_hidden | ||
) |
Select and make the target object and bone active. Switches to Pose mode if in Object mode so the selection is visible. Un-hides the target bone and bone layer if necessary.
Definition at line 279 of file object_select.c.
References bArmature::act_bone, bArmature::act_edbone, bitscan_forward_uint(), BKE_pose_channel_find_name(), bPoseChannel::bone, BONE_HIDDEN_A, BONE_HIDDEN_P, C, Object::data, EBONE_SELECTABLE, ED_armature_ebone_find_name(), ED_armature_ebone_select_set(), ED_armature_edit_deselect_all(), ED_armature_edit_sync_selection(), ED_object_jump_to_object(), ED_object_mode_set(), ED_pose_bone_select(), ED_pose_bone_select_tag_update(), ED_pose_deselect_all(), bArmature::edbo, ELEM, EditBone::flag, Bone::flag, EditBone::layer, Bone::layer, bArmature::layer, Object::mode, NULL, OB_ARMATURE, OB_MODE_EDIT, OB_MODE_POSE, Object::pose, SEL_DESELECT, and Object::type.
Referenced by jump_to_target_ptr().
Select and make the target object active in the view layer. If already selected, selection isn't changed.
Referenced by jump_to_target_ptr().
Definition at line 268 of file object_add.cc.
References C, copy_v3_v3(), CTX_data_scene(), Scene::cursor, View3DCursor::location, and scene.
Referenced by collection_add_info_get_from_op(), ED_object_add_generic_get_opts(), empty_drop_named_image_invoke(), object_add_named_exec(), object_data_instance_add_exec(), and object_transform_to_mouse_exec().
bool ED_object_mode_compat_set | ( | struct bContext * | C, |
struct Object * | ob, | ||
eObjectMode | mode, | ||
struct ReportList * | reports | ||
) |
Sets the mode to a compatible state (use before entering the mode).
This is so each mode's exec function can call
Definition at line 161 of file object_modes.c.
References BKE_reportf(), C, ELEM, Object::mode, wmOperatorType::name, NULL, OB_MODE_OBJECT, object_mode_op_string(), ot, RPT_ERROR, WM_OP_EXEC_REGION_WIN, WM_operator_name_call(), and WM_operatortype_find().
Referenced by blender::ed::sculpt_paint::curves_sculptmode_toggle_exec(), editmode_toggle_exec(), particle_edit_toggle_exec(), posemode_exec(), sculpt_mode_toggle_exec(), texture_paint_toggle_exec(), vpaint_mode_toggle_exec(), and wpaint_mode_toggle_exec().
bool ED_object_mode_compat_test | ( | const struct Object * | ob, |
eObjectMode | mode | ||
) |
Checks the mode to be set is compatible with the object should be made into a generic function
Referenced by object_mode_set_exec(), and object_mode_set_itemf().
void ED_object_mode_generic_exit | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Definition at line 387 of file object_modes.c.
References depsgraph, ed_object_mode_generic_exit_ex(), and scene.
Referenced by ed_object_select_pick(), sculpt_undosys_step_decode(), and tree_element_object_activate().
Definition at line 395 of file object_modes.c.
References depsgraph, ed_object_mode_generic_exit_ex(), and NULL.
bool ED_object_mode_set | ( | struct bContext * | C, |
eObjectMode | mode | ||
) |
Definition at line 231 of file object_modes.c.
References C, ED_object_mode_set_ex(), and NULL.
Referenced by do_outliner_item_mode_toggle_generic(), ED_editors_init(), ED_object_jump_to_bone(), ED_workspace_change(), blender::io::obj::exporter_main(), insert_key_exec(), view3d_object_mode_menu(), and workspace_change_update().
bool ED_object_mode_set_ex | ( | struct bContext * | C, |
eObjectMode | mode, | ||
bool | use_undo, | ||
struct ReportList * | reports | ||
) |
Definition at line 191 of file object_modes.c.
References BKE_reportf(), C, CTX_data_view_layer(), CTX_wm_manager(), ED_object_mode_compat_test(), Object::mode, wmOperatorType::name, NULL, OB_GPENCIL, OB_MODE_EDIT, OB_MODE_EDIT_GPENCIL, OB_MODE_OBJECT, OBACT, object_mode_op_string(), wmWindowManager::op_undo_depth, ot, RPT_ERROR, Object::type, WM_OP_EXEC_REGION_WIN, WM_operator_name_call_ptr(), and WM_operatortype_find().
Referenced by ED_object_mode_set(), image_undosys_step_decode(), object_mode_set_exec(), and object_transfer_mode_to_base().
struct ModifierData* ED_object_modifier_add | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
const char * | name, | ||
int | type | ||
) |
Add a modifier to given object, including relevant extra processing needed by some physics types (particles, simulations...).
scene | is only used to set current frame in some cases, and may be NULL. |
Definition at line 144 of file object_modifier.cc.
References BKE_mesh_ensure_skin_customdata(), BKE_modifier_get_info(), BKE_modifier_new(), BKE_modifier_unique_name(), BKE_modifiers_findby_type(), BKE_object_modifier_set_active(), BKE_object_support_modifier_type_check(), BKE_partdeflect_new(), BKE_report(), BKE_reportf(), BKE_sculpt_mask_layers_ensure(), BLI_addtail(), BLI_insertlinkbefore(), BLI_strncpy_utf8(), Object::data, PartDeflect::deflect, DEG_id_tag_update(), DEG_relations_tag_update(), eModifierType_Collision, eModifierType_Multires, eModifierType_ParticleSystem, eModifierType_Skin, eModifierType_Softbody, eModifierType_Surface, eModifierTypeFlag_RequiresOriginalData, eModifierTypeFlag_Single, eModifierTypeType_OnlyDeform, ListBase::first, ModifierTypeInfo::flags, Object::id, ID_RECALC_GEOMETRY, Object::mode, Object::modifiers, multiresModifier_set_levels_from_disps(), ID::name, ModifierData::next, OB_MODE_SCULPT, OB_SB_EDGES, OB_SB_GOAL, object_add_particle_system(), Object::pd, RPT_WARNING, sbNew(), scene, Object::soft, Object::softflag, ModifierTypeInfo::type, type, and ModifierData::type.
Referenced by ED_object_check_force_modifiers(), ED_object_parent_set(), blender::ed::curves::ensure_surface_deformation_node_exists(), geometry_extract_apply(), SkinInfo::link_armature(), and modifier_add_exec().
bool ED_object_modifier_apply | ( | struct Main * | bmain, |
struct ReportList * | reports, | ||
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
struct ModifierData * | md, | ||
int | mode, | ||
bool | keep_modifier | ||
) |
Definition at line 862 of file object_modifier.cc.
References BKE_modifier_free(), BKE_modifier_is_same_topology(), BKE_modifier_remove_from_list(), BKE_modifiers_findby_name(), BKE_object_free_derived_caches(), BKE_object_is_in_editmode(), BKE_report(), Object::data, DEG_get_evaluated_object(), depsgraph, eModifierMode_Realtime, find_multires_modifier_before(), ListBase::first, ID_REAL_USERS, ModifierData::mode, Object::mode, modifier_apply_obdata(), MODIFIER_APPLY_SHAPE, modifier_apply_shape(), Object::modifiers, ModifierData::name, OB_MODE_SCULPT, RPT_ERROR, RPT_INFO, and scene.
Referenced by modifier_apply_exec_ex().
Definition at line 389 of file object_modifier.cc.
References DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Object::id, ID_RECALC_GEOMETRY, Object::modifiers, ModifierData::next, object_modifier_remove(), and scene.
bool ED_object_modifier_convert_psys_to_mesh | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Depsgraph * | depsgraph, | ||
struct ViewLayer * | view_layer, | ||
struct Object * | ob, | ||
struct ModifierData * | md | ||
) |
bool ED_object_modifier_copy | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
struct ModifierData * | md | ||
) |
void ED_object_modifier_copy_to_object | ( | struct bContext * | C, |
struct Object * | ob_dst, | ||
struct Object * | ob_src, | ||
struct ModifierData * | md | ||
) |
Definition at line 505 of file object_modifier.cc.
References BKE_object_copy_modifier(), C, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NC_OBJECT, ND_MODIFIER, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
void ED_object_modifier_link | ( | struct bContext * | C, |
struct Object * | ob_dst, | ||
struct Object * | ob_src | ||
) |
Definition at line 495 of file object_modifier.cc.
References BKE_object_link_modifiers(), C, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NC_OBJECT, ND_MODIFIER, and WM_event_add_notifier().
Referenced by datastack_drop_link().
bool ED_object_modifier_move_down | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ModifierData * | md | ||
) |
Definition at line 434 of file object_modifier.cc.
References BKE_modifier_get_info(), BKE_report(), BLI_listbase_swaplinks(), eModifierTypeFlag_RequiresOriginalData, eModifierTypeType_OnlyDeform, ModifierTypeInfo::flags, Object::modifiers, ModifierData::next, RPT_WARNING, ModifierTypeInfo::type, and ModifierData::type.
Referenced by ED_object_modifier_move_to_index(), and modifier_move_down_exec().
bool ED_object_modifier_move_to_index | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ModifierData * | md, | ||
int | index | ||
) |
Definition at line 458 of file object_modifier.cc.
References BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_count(), DEG_id_tag_update(), ED_object_modifier_move_down(), ED_object_modifier_move_up(), Object::id, ID_RECALC_GEOMETRY, Object::modifiers, NC_OBJECT, ND_MODIFIER, RPT_WARNING, and WM_main_add_notifier().
Referenced by datastack_drop_reorder(), and modifier_move_to_index_exec().
bool ED_object_modifier_move_up | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ModifierData * | md | ||
) |
Definition at line 410 of file object_modifier.cc.
References BKE_modifier_get_info(), BKE_report(), BLI_listbase_swaplinks(), eModifierTypeFlag_RequiresOriginalData, eModifierTypeType_OnlyDeform, ModifierTypeInfo::flags, Object::modifiers, ModifierData::prev, RPT_WARNING, ModifierTypeInfo::type, and ModifierData::type.
Referenced by ED_object_modifier_move_to_index(), and modifier_move_up_exec().
bool ED_object_modifier_remove | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
struct ModifierData * | md | ||
) |
Definition at line 371 of file object_modifier.cc.
References BKE_reportf(), DEG_id_tag_update(), DEG_relations_tag_update(), Object::id, ID_RECALC_GEOMETRY, ModifierData::name, ID::name, object_modifier_remove(), RPT_ERROR, and scene.
Referenced by ED_object_check_force_modifiers(), modifier_fn(), and modifier_remove_exec().
Use with ED_object_iter_other(). Sets the total number of levels for any multi-res modifiers on the object to the int pointed to by callback_data.
Definition at line 291 of file object_modifier.cc.
References DEG_id_tag_update(), eModifierType_Multires, Object::id, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, Object::modifiers, and multires_set_tot_level().
Referenced by join_mesh_single(), multires_higher_levels_delete_exec(), and multires_subdivide_exec().
float ED_object_new_primitive_matrix | ( | struct bContext * | C, |
struct Object * | obedit, | ||
const float | loc[3], | ||
const float | rot[3], | ||
const float | scale[3], | ||
float | primmat[4][4] | ||
) |
Uses context to figure out transform for primitive. Returns standard diameter.
Definition at line 328 of file object_add.cc.
References C, copy_m3_m4(), copy_m4_m3(), copy_v3_v3(), CTX_data_scene(), CTX_wm_view3d(), ED_scene_grid_scale(), ED_view3d_grid_scale(), eul_to_mat3(), invert_m3(), invert_m3_m3(), mul_m3_m3m3(), mul_m3_v3(), Object::obmat, rescale_m4(), rot, scene, sub_v3_v3v3(), and unit_m4().
Referenced by curvesurf_prim_add(), effector_add_exec(), make_prim_init(), object_gpencil_add_exec(), and object_metaball_add_exec().
char* ED_object_ot_drop_named_material_tooltip | ( | struct bContext * | C, |
const char * | name, | ||
const int | mval[2] | ||
) |
Definition at line 2789 of file object_relations.c.
References BKE_object_material_get(), BLI_sprintfN(), BLI_strdup(), C, ED_view3d_give_material_slot_under_cursor(), Material::id, Object::id, max_ii(), ID::name, NULL, result, and TIP_.
Referenced by view3d_mat_drop_tooltip().
Definition at line 465 of file object_relations.c.
References BKE_object_parent_loop_check(), BLI_assert, BLI_strncpy(), ELEM, NULL, PARBONE, Object::parent, Object::parentinv, PAROBJECT, PARSKEL, Object::parsubstr, Object::partype, PARTYPE, PARVERT1, PARVERT3, type, and unit_m4().
Definition at line 382 of file object_relations.c.
References BKE_object_apply_mat4(), CLEAR_PARENT_ALL, CLEAR_PARENT_INVERSE, CLEAR_PARENT_KEEP_TRANSFORM, DEG_id_tag_update(), Object::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, NULL, object_remove_parent_deform_modifiers(), Object::obmat, Object::parent, Object::parentinv, PAROBJECT, Object::parsubstr, Object::partype, type, and unit_m4().
Referenced by parent_clear_exec(), and parent_clear_invoke().
bool ED_object_parent_set | ( | struct ReportList * | reports, |
const struct bContext * | C, | ||
struct Scene * | scene, | ||
struct Object *const | ob, | ||
struct Object *const | par, | ||
int | partype, | ||
bool | xmirror, | ||
bool | keep_transform, | ||
const int | vert_par[3] | ||
) |
Set the object's parent, return true if successful.
Referenced by bc_set_parent(), object_curves_empty_hair_add_exec(), parent_drop_set_parents(), and blender::ed::curves::surface_set::surface_set_exec().
Definition at line 5467 of file particle_edit.c.
References C, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, ED_object_particle_edit_mode_enter_ex(), and scene.
void ED_object_particle_edit_mode_enter_ex | ( | struct Depsgraph * | depsgraph, |
struct Scene * | scene, | ||
Object * | ob | ||
) |
Definition at line 5438 of file particle_edit.c.
References BKE_modifiers_findby_name(), BKE_scene_graph_evaluated_ensure(), DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, G_MAIN, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, Object::mode, ParticleSystemModifierData::modifier, ModifierData::name, NC_SCENE, ND_MODE, NS_MODE_PARTICLE, NULL, OB_MODE_PARTICLE_EDIT, PE_create_current(), PTCacheEdit::psmd, PTCacheEdit::psmd_eval, PTCacheEdit::psys, recalc_emitter_field(), scene, toggle_particle_cursor(), and WM_main_add_notifier().
Referenced by ED_object_particle_edit_mode_enter(), particle_edit_toggle_exec(), and particle_undosys_step_decode().
Definition at line 5485 of file particle_edit.c.
References C, CTX_data_active_object(), CTX_data_scene(), ED_object_particle_edit_mode_exit_ex(), and scene.
Definition at line 5475 of file particle_edit.c.
References DEG_id_tag_update(), free_all_psys_edit(), Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, Object::mode, NC_SCENE, ND_MODE, NS_MODE_OBJECT, NULL, OB_MODE_PARTICLE_EDIT, scene, toggle_particle_cursor(), and WM_main_add_notifier().
Referenced by ed_object_mode_generic_exit_ex(), ED_object_particle_edit_mode_exit(), and particle_edit_toggle_exec().
Definition at line 5432 of file particle_edit.c.
References BKE_modifiers_findby_type(), eModifierType_Cloth, eModifierType_Softbody, ListBase::first, and Object::particlesystem.
Referenced by ED_object_mode_compat_test(), and particle_edit_toggle_poll().
Get the constraints for the active pose bone. Bone may be on an inactive bone-layer (unlike ED_object_constraint_active_list, such constraints are not excluded here).
Referenced by uiTemplateConstraints().
void ED_object_posemode_set_for_weight_paint | ( | struct bContext * | C, |
struct Main * | bmain, | ||
struct Object * | ob, | ||
bool | is_mode_set | ||
) |
Definition at line 357 of file object_modes.c.
References BKE_gpencil_modifiers_get_virtual_modifierlist(), BKE_modifiers_get_virtual_modifierlist(), C, ed_object_posemode_set_for_weight_paint_ex(), eGpencilModifierType_Armature, eModifierType_Armature, GpencilModifierData::next, ModifierData::next, OB_GPENCIL, ArmatureGpencilModifierData::object, ArmatureModifierData::object, GpencilModifierData::type, ModifierData::type, and Object::type.
Referenced by gpencil_weightmode_toggle_exec(), and wpaint_mode_toggle_exec().
Definition at line 274 of file object_add.cc.
References axis_angle_to_quat(), BLI_assert, float(), M_PI_2, mul_qt_qtqt(), quat_to_eul(), and rot.
Referenced by ED_object_rotation_from_view().
Definition at line 300 of file object_add.cc.
References BLI_assert, C, copy_qt_qt(), CTX_wm_region_view3d(), ED_object_rotation_from_quat(), rot, RegionView3D::viewquat, and zero_v3().
Referenced by ED_object_add_generic_get_opts(), and empty_drop_named_image_invoke().
void ED_object_sculptmode_enter | ( | struct bContext * | C, |
struct Depsgraph * | depsgraph, | ||
struct ReportList * | reports | ||
) |
Definition at line 414 of file sculpt_ops.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), depsgraph, ED_object_sculptmode_enter_ex(), OBACT, and scene.
void ED_object_sculptmode_enter_ex | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
bool | force_dyntopo, | ||
struct ReportList * | reports | ||
) |
Definition at line 326 of file sculpt_ops.c.
References BKE_mesh_from_object(), BKE_paint_get_active_from_paintmode(), BKE_paint_init(), BKE_report(), BKE_reportf(), BKE_sculpt_multires_active(), BLI_assert, DEG_id_tag_update(), depsgraph, DYNTOPO_WARN_EDATA, DYNTOPO_WARN_LDATA, DYNTOPO_WARN_MODIFIER, DYNTOPO_WARN_VDATA, ED_paint_cursor_start(), fabsf, ListBase::first, Mesh::flag, Object::id, ID_RECALC_COPY_ON_WRITE, is_negative_m4(), ME_SCULPT_DYNAMIC_TOPOLOGY, Object::mode, NULL, OB_MODE_SCULPT, Object::obmat, PAINT_CURSOR_SCULPT, PAINT_MODE_SCULPT, RPT_WARNING, Object::scale, scene, SCULPT_dynamic_topology_check(), SCULPT_dynamic_topology_enable_ex(), sculpt_init_session(), SCULPT_mode_poll_view3d(), SCULPT_UNDO_DYNTOPO_BEGIN, SCULPT_undo_push_begin(), SCULPT_undo_push_end(), SCULPT_undo_push_node(), TIP_, Mesh::totloop, Mesh::totpoly, wmWindowManager::undo_stack, and Main::wm.
Referenced by ED_editors_init(), ED_object_sculptmode_enter(), sculpt_mode_toggle_exec(), and sculpt_undosys_step_decode().
Definition at line 466 of file sculpt_ops.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), depsgraph, ED_object_sculptmode_exit_ex(), OBACT, and scene.
Referenced by geometry_extract_apply().
void ED_object_sculptmode_exit_ex | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Definition at line 423 of file sculpt_ops.c.
References BKE_mesh_from_object(), BKE_object_free_derived_caches(), BKE_sculpt_multires_active(), BKE_sculptsession_free(), SculptSession::bm, DEG_id_tag_update(), depsgraph, Mesh::flag, Object::id, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ME_SCULPT_DYNAMIC_TOPOLOGY, Object::mode, multires_flush_sculpt_updates(), OB_MODE_SCULPT, paint_cursor_delete_textures(), scene, Object::sculpt, and sculpt_dynamic_topology_disable_with_undo().
Referenced by ed_object_mode_generic_exit_ex(), ED_object_sculptmode_exit(), and sculpt_mode_toggle_exec().
Definition at line 592 of file object_select.c.
References C, CTX_data_scene(), DEG_id_tag_update(), GS, id, Scene::id, ID_LI, ID_MA, ID_RECALC_SELECT, ID::name, NC_SCENE, ND_OB_SELECT, OB_DATA_SUPPORT_ID, object_select_all_by_library(), object_select_all_by_material(), object_select_all_by_obdata(), scene, and WM_event_add_notifier().
Referenced by data_select_linked_fn(), and id_select_linked_fn().
struct ShaderFxData* ED_object_shaderfx_add | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
struct Object * | ob, | ||
const char * | name, | ||
int | type | ||
) |
Definition at line 152 of file object_shader_fx.c.
References DEG_id_tag_update(), DEG_relations_tag_update(), ListBase::first, Object::id, ID_RECALC_GEOMETRY, ShaderFxData::next, object_shaderfx_remove(), and Object::shader_fx.
void ED_object_shaderfx_copy | ( | struct Object * | dst, |
struct ShaderFxData * | fx | ||
) |
Definition at line 241 of file object_shader_fx.c.
References BKE_shaderfx_copydata(), BKE_shaderfx_new(), BLI_addtail(), BLI_strncpy(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, ShaderFxData::name, NC_OBJECT, ND_SHADERFX, Object::shader_fx, ShaderFxData::type, and WM_main_add_notifier().
Referenced by datastack_drop_copy().
Definition at line 232 of file object_shader_fx.c.
References BKE_shaderfx_copy(), BLI_freelistN(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_SHADERFX, Object::shader_fx, src, and WM_main_add_notifier().
Referenced by datastack_drop_link(), and make_links_data_exec().
int ED_object_shaderfx_move_down | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ShaderFxData * | fx | ||
) |
bool ED_object_shaderfx_move_to_index | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ShaderFxData * | fx, | ||
int | index | ||
) |
Definition at line 195 of file object_shader_fx.c.
References BKE_report(), BLI_assert, BLI_findindex(), BLI_listbase_count(), DEG_id_tag_update(), ED_object_shaderfx_move_down(), ED_object_shaderfx_move_up(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_SHADERFX, NULL, RPT_WARNING, Object::shader_fx, and WM_main_add_notifier().
Referenced by datastack_drop_reorder(), and shaderfx_move_to_index_exec().
int ED_object_shaderfx_move_up | ( | struct ReportList * | reports, |
struct Object * | ob, | ||
struct ShaderFxData * | fx | ||
) |
bool ED_object_shaderfx_remove | ( | struct ReportList * | reports, |
struct Main * | bmain, | ||
struct Object * | ob, | ||
struct ShaderFxData * | fx | ||
) |
Definition at line 134 of file object_shader_fx.c.
References BKE_reportf(), DEG_id_tag_update(), DEG_relations_tag_update(), Object::id, ID_RECALC_GEOMETRY, ShaderFxData::name, ID::name, object_shaderfx_remove(), and RPT_ERROR.
Referenced by shaderfx_remove_exec().
Definition at line 1937 of file object_relations.c.
References Object::flag, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, NULL, OB_DONE, scene, and single_obdata_users().
Referenced by apply_objects_internal(), and modifier_apply_exec_ex().
Not an especially efficient function, only added so the single user button can be functional.
Definition at line 1806 of file object_relations.c.
References BKE_main_id_newptr_and_tag_clear(), Object::flag, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, NULL, OB_DONE, scene, and single_object_users().
Referenced by template_id_cb().
Definition at line 815 of file paint_image.cc.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), ED_object_texture_paint_mode_enter_ex(), and scene.
void ED_object_texture_paint_mode_enter_ex | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
Object * | ob | ||
) |
Definition at line 755 of file paint_image.cc.
References Object::actcol, blender::compositor::area(), bScreen::areabase, BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BKE_object_material_get(), BKE_paint_init(), BKE_paint_toolslots_brush_validate(), BKE_texpaint_slots_refresh_object(), BLI_assert, ImagePaintSettings::canvas, DEG_id_tag_update(), ED_paint_proj_mesh_data_check(), ED_space_image_set(), ListBase::first, Mesh::id, ID_RECALC_COPY_ON_WRITE, TexPaintSlot::ima, IMAGEPAINT_MODE_IMAGE, IMAGEPAINT_MODE_MATERIAL, ToolSettings::imapaint, LISTBASE_FOREACH, Object::mode, ImagePaintSettings::mode, NC_SCENE, ND_MODE, OB_MODE_TEXTURE_PAINT, ImagePaintSettings::paint, Material::paint_active_slot, PAINT_CURSOR_TEXTURE_PAINT, PAINT_MODE_TEXTURE_3D, SpaceImage::pin, scene, SPACE_IMAGE, SpaceLink::spacetype, Material::texpaintslot, toggle_paint_cursor(), Scene::toolsettings, wmWindowManager::windows, Main::wm, WM_main_add_notifier(), and WM_window_get_active_screen().
Referenced by ED_object_texture_paint_mode_enter(), and texture_paint_toggle_exec().
Definition at line 839 of file paint_image.cc.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), ED_object_texture_paint_mode_exit_ex(), and scene.
void ED_object_texture_paint_mode_exit_ex | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
Object * | ob | ||
) |
Definition at line 823 of file paint_image.cc.
References BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BLI_assert, DEG_id_tag_update(), Mesh::id, ID_RECALC_COPY_ON_WRITE, Object::mode, NC_SCENE, ND_MODE, OB_MODE_TEXTURE_PAINT, scene, toggle_paint_cursor(), and WM_main_add_notifier().
Referenced by ed_object_mode_generic_exit_ex(), ED_object_texture_paint_mode_exit(), and texture_paint_toggle_exec().
const struct EnumPropertyItem* ED_object_vgroup_selection_itemf_helper | ( | const struct bContext * | C, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
bool * | r_free, | ||
unsigned int | selection_mask | ||
) |
Definition at line 1349 of file paint_vertex.cc.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), depsgraph, ED_object_vpaintmode_enter_ex(), and scene.
void ED_object_vpaintmode_enter_ex | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Definition at line 1345 of file paint_vertex.cc.
References depsgraph, ed_vwpaintmode_enter_generic(), OB_MODE_VERTEX_PAINT, and scene.
Referenced by ED_editors_init(), ED_object_vpaintmode_enter(), and vpaint_mode_toggle_exec().
Definition at line 1426 of file paint_vertex.cc.
References C, CTX_data_active_object(), and ED_object_vpaintmode_exit_ex().
Definition at line 1422 of file paint_vertex.cc.
References ed_vwpaintmode_exit_generic(), and OB_MODE_VERTEX_PAINT.
Referenced by ed_object_mode_generic_exit_ex(), ED_object_vpaintmode_exit(), and vpaint_mode_toggle_exec().
Definition at line 1361 of file paint_vertex.cc.
References C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), depsgraph, ED_object_wpaintmode_enter_ex(), and scene.
void ED_object_wpaintmode_enter_ex | ( | struct Main * | bmain, |
struct Depsgraph * | depsgraph, | ||
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Definition at line 1357 of file paint_vertex.cc.
References depsgraph, ed_vwpaintmode_enter_generic(), OB_MODE_WEIGHT_PAINT, and scene.
Referenced by ED_editors_init(), ED_object_wpaintmode_enter(), and wpaint_mode_toggle_exec().
Definition at line 1436 of file paint_vertex.cc.
References C, CTX_data_active_object(), and ED_object_wpaintmode_exit_ex().
Definition at line 1432 of file paint_vertex.cc.
References ed_vwpaintmode_exit_generic(), and OB_MODE_WEIGHT_PAINT.
Referenced by ed_object_mode_generic_exit_ex(), ED_object_wpaintmode_exit(), and wpaint_mode_toggle_exec().
void ED_object_xform_array_m4 | ( | struct Object ** | objects, |
uint | objects_len, | ||
const float | matrix[4][4] | ||
) |
Definition at line 434 of file object_utils.c.
References add_v3_v3(), BKE_object_apply_mat4(), BKE_object_to_mat4(), BLI_gset_add(), BLI_gset_free(), BLI_gset_ptr_new_ex(), copy_m4_m4(), DEG_id_tag_update(), equals_m4m4(), Object::id, ID_RECALC_TRANSFORM, Object::loc, mul_m4_m4m4(), NULL, object_parent_in_set(), unit_m4(), and zero_v3().
Referenced by collection_drop_exec(), and object_transform_to_mouse_exec().
struct XFormObjectSkipChild_Container* ED_object_xform_skip_child_container_create | ( | void | ) |
Definition at line 161 of file object_utils.c.
References BLI_ghash_ptr_new(), MEM_callocN, NULL, and XFormObjectSkipChild_Container::obchild_in_obmode_map.
Referenced by createTransObject(), object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_xform_skip_child_container_destroy | ( | struct XFormObjectSkipChild_Container * | xcs | ) |
Definition at line 230 of file object_utils.c.
References BLI_ghash_free(), MEM_freeN, NULL, and XFormObjectSkipChild_Container::obchild_in_obmode_map.
Referenced by freeTransObjectCustomData(), object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_xform_skip_child_container_item_ensure | ( | struct XFormObjectSkipChild_Container * | xcs, |
struct Object * | ob, | ||
struct Object * | ob_parent_recurse, | ||
int | mode | ||
) |
Definition at line 236 of file object_utils.c.
References BLI_ghash_ensure_p(), copy_m4_m4(), invert_m4_m4(), MEM_mallocN, XFormObjectSkipChild::mode, XFormObjectSkipChild::ob_parent_recurse, XFormObjectSkipChild_Container::obchild_in_obmode_map, Object::obmat, XFormObjectSkipChild::obmat_orig, Object::parent, XFormObjectSkipChild::parent_obmat_inv_orig, XFormObjectSkipChild::parent_obmat_orig, XFormObjectSkipChild::parent_recurse_obmat_orig, Object::parentinv, and XFormObjectSkipChild::parentinv_orig.
Referenced by createTransObject(), and ED_object_xform_skip_child_container_item_ensure_from_array().
void ED_object_xform_skip_child_container_item_ensure_from_array | ( | struct XFormObjectSkipChild_Container * | xcs, |
struct ViewLayer * | view_layer, | ||
struct Object ** | objects, | ||
uint | objects_len | ||
) |
Definition at line 170 of file object_utils.c.
References BLI_gset_add(), BLI_gset_free(), BLI_gset_haskey(), BLI_gset_ptr_new_ex(), ED_object_xform_skip_child_container_item_ensure(), LISTBASE_FOREACH, NULL, ViewLayer::object_bases, Object::parent, XFORM_OB_SKIP_CHILD_PARENT_APPLY, and XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM.
Referenced by object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), and snap_selected_to_location().
void ED_object_xform_skip_child_container_update_all | ( | struct XFormObjectSkipChild_Container * | xcs, |
struct Main * | bmain, | ||
struct Depsgraph * | depsgraph | ||
) |
Definition at line 257 of file object_utils.c.
References BKE_scene_graph_evaluated_ensure(), BLI_assert, BLI_ghashIterator_getKey(), BLI_ghashIterator_getValue(), DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, GHASH_ITER, Object::id, ID_RECALC_TRANSFORM, invert_m4(), invert_m4_m4(), XFormObjectSkipChild::mode, mul_m4_m4m4(), XFormObjectSkipChild::ob_parent_recurse, XFormObjectSkipChild_Container::obchild_in_obmode_map, Object::obmat, XFormObjectSkipChild::obmat_orig, Object::parent, XFormObjectSkipChild::parent_obmat_inv_orig, XFormObjectSkipChild::parent_obmat_orig, XFormObjectSkipChild::parent_recurse_obmat_orig, Object::parentinv, XFormObjectSkipChild::parentinv_orig, XFORM_OB_SKIP_CHILD_PARENT_APPLY, XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM, and XFORM_OB_SKIP_CHILD_PARENT_IS_XFORM_INDIRECT.
Referenced by object_clear_transform_generic_exec(), snap_sel_to_grid_exec(), snap_selected_to_location(), and trans_obchild_in_obmode_update_all().
Clear motion paths for all objects.
Definition at line 1407 of file object_edit.c.
References C, CTX_DATA_BEGIN, CTX_DATA_END, and object_clear_mpath().
Referenced by object_clear_paths_exec().
void ED_objects_recalculate_paths | ( | struct bContext * | C, |
struct Scene * | scene, | ||
eObjectPathCalcRange | range, | ||
struct ListBase * | ld_objects | ||
) |
For the objects with animation: update paths for those that have got them This should selectively update paths that exist.
To be called from various tools that do incremental updates
Definition at line 1140 of file object_edit.c.
References animviz_calc_motionpaths(), animviz_depsgraph_build(), animviz_get_object_motionpaths(), ANIMVIZ_RECALC_PATHS, bPose::avs, Object::avs, BLI_freelistN(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_view_layer(), Object::data, DEG_graph_free(), DEG_id_tag_update(), depsgraph, has_object_motion_paths(), has_pose_motion_paths(), Object::id, ID_RECALC_COPY_ON_WRITE, LISTBASE_FOREACH, NULL, OBJECT_PATH_CALC_RANGE_CURRENT_FRAME, object_path_convert_range(), Object::pose, bAnimVizSettings::recalc, and scene.
Referenced by ED_objects_recalculate_paths_selected(), and ED_objects_recalculate_paths_visible().
void ED_objects_recalculate_paths_selected | ( | struct bContext * | C, |
struct Scene * | scene, | ||
eObjectPathCalcRange | range | ||
) |
Definition at line 1104 of file object_edit.c.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), C, CTX_DATA_BEGIN, CTX_DATA_END, ED_objects_recalculate_paths(), NULL, and scene.
Referenced by object_calculate_paths_exec(), object_update_paths_exec(), recalcData_objects(), and special_aftertrans_update__object().
void ED_objects_recalculate_paths_visible | ( | struct bContext * | C, |
struct Scene * | scene, | ||
eObjectPathCalcRange | range | ||
) |
Definition at line 1117 of file object_edit.c.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), C, CTX_DATA_BEGIN, CTX_DATA_END, ED_objects_recalculate_paths(), NULL, and scene.
Referenced by object_update_all_paths_exec().
Definition at line 280 of file object_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 28 of file object_ops.c.
References COLLECTION_OT_create(), COLLECTION_OT_objects_add_active(), COLLECTION_OT_objects_remove(), COLLECTION_OT_objects_remove_active(), COLLECTION_OT_objects_remove_all(), CONSTRAINT_OT_apply(), CONSTRAINT_OT_childof_clear_inverse(), CONSTRAINT_OT_childof_set_inverse(), CONSTRAINT_OT_copy(), CONSTRAINT_OT_copy_to_selected(), CONSTRAINT_OT_delete(), CONSTRAINT_OT_followpath_path_animate(), CONSTRAINT_OT_limitdistance_reset(), CONSTRAINT_OT_move_down(), CONSTRAINT_OT_move_to_index(), CONSTRAINT_OT_move_up(), CONSTRAINT_OT_objectsolver_clear_inverse(), CONSTRAINT_OT_objectsolver_set_inverse(), CONSTRAINT_OT_stretchto_reset(), GPENCIL_OT_segment_add(), GPENCIL_OT_segment_move(), GPENCIL_OT_segment_remove(), OBJECT_OT_add(), OBJECT_OT_add_named(), OBJECT_OT_armature_add(), OBJECT_OT_bake(), OBJECT_OT_bake_image(), OBJECT_OT_camera_add(), OBJECT_OT_clear_override_library(), OBJECT_OT_collection_add(), OBJECT_OT_collection_external_asset_drop(), OBJECT_OT_collection_instance_add(), OBJECT_OT_collection_link(), OBJECT_OT_collection_objects_select(), OBJECT_OT_collection_remove(), OBJECT_OT_collection_unlink(), OBJECT_OT_constraint_add(), OBJECT_OT_constraint_add_with_targets(), OBJECT_OT_constraints_clear(), OBJECT_OT_constraints_copy(), OBJECT_OT_convert(), OBJECT_OT_correctivesmooth_bind(), OBJECT_OT_curves_empty_hair_add(), OBJECT_OT_curves_random_add(), OBJECT_OT_data_instance_add(), OBJECT_OT_data_transfer(), OBJECT_OT_datalayout_transfer(), OBJECT_OT_delete(), OBJECT_OT_drop_named_image(), OBJECT_OT_drop_named_material(), OBJECT_OT_duplicate(), OBJECT_OT_duplicates_make_real(), OBJECT_OT_editmode_toggle(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_explode_refresh(), OBJECT_OT_face_map_add(), OBJECT_OT_face_map_assign(), OBJECT_OT_face_map_deselect(), OBJECT_OT_face_map_move(), OBJECT_OT_face_map_remove(), OBJECT_OT_face_map_remove_from(), OBJECT_OT_face_map_select(), OBJECT_OT_forcefield_toggle(), OBJECT_OT_geometry_node_tree_copy_assign(), OBJECT_OT_geometry_nodes_input_attribute_toggle(), OBJECT_OT_gpencil_add(), OBJECT_OT_gpencil_modifier_add(), OBJECT_OT_gpencil_modifier_apply(), OBJECT_OT_gpencil_modifier_copy(), OBJECT_OT_gpencil_modifier_copy_to_selected(), OBJECT_OT_gpencil_modifier_move_down(), OBJECT_OT_gpencil_modifier_move_to_index(), OBJECT_OT_gpencil_modifier_move_up(), OBJECT_OT_gpencil_modifier_remove(), OBJECT_OT_hide_collection(), OBJECT_OT_hide_view_clear(), OBJECT_OT_hide_view_set(), OBJECT_OT_hook_add_newob(), OBJECT_OT_hook_add_selob(), OBJECT_OT_hook_assign(), OBJECT_OT_hook_recenter(), OBJECT_OT_hook_remove(), OBJECT_OT_hook_reset(), OBJECT_OT_hook_select(), OBJECT_OT_join(), OBJECT_OT_join_shapes(), OBJECT_OT_laplaciandeform_bind(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_link_to_collection(), OBJECT_OT_location_clear(), OBJECT_OT_make_links_data(), OBJECT_OT_make_links_scene(), OBJECT_OT_make_local(), OBJECT_OT_make_override_library(), OBJECT_OT_make_single_user(), OBJECT_OT_meshdeform_bind(), OBJECT_OT_metaball_add(), OBJECT_OT_mode_set(), OBJECT_OT_mode_set_with_submode(), OBJECT_OT_modifier_add(), OBJECT_OT_modifier_apply(), OBJECT_OT_modifier_apply_as_shapekey(), OBJECT_OT_modifier_convert(), OBJECT_OT_modifier_copy(), OBJECT_OT_modifier_copy_to_selected(), OBJECT_OT_modifier_move_down(), OBJECT_OT_modifier_move_to_index(), OBJECT_OT_modifier_move_up(), OBJECT_OT_modifier_remove(), OBJECT_OT_modifier_set_active(), OBJECT_OT_move_to_collection(), OBJECT_OT_multires_base_apply(), OBJECT_OT_multires_external_pack(), OBJECT_OT_multires_external_save(), OBJECT_OT_multires_higher_levels_delete(), OBJECT_OT_multires_rebuild_subdiv(), OBJECT_OT_multires_reshape(), OBJECT_OT_multires_subdivide(), OBJECT_OT_multires_unsubdivide(), OBJECT_OT_ocean_bake(), OBJECT_OT_origin_clear(), OBJECT_OT_origin_set(), OBJECT_OT_parent_clear(), OBJECT_OT_parent_inverse_apply(), OBJECT_OT_parent_no_inverse_set(), OBJECT_OT_parent_set(), OBJECT_OT_paths_calculate(), OBJECT_OT_paths_clear(), OBJECT_OT_paths_update(), OBJECT_OT_paths_update_visible(), OBJECT_OT_pointcloud_add(), OBJECT_OT_posemode_toggle(), OBJECT_OT_quadriflow_remesh(), OBJECT_OT_reset_override_library(), OBJECT_OT_rotation_clear(), OBJECT_OT_scale_clear(), OBJECT_OT_select_all(), OBJECT_OT_select_by_type(), OBJECT_OT_select_grouped(), OBJECT_OT_select_less(), OBJECT_OT_select_linked(), OBJECT_OT_select_mirror(), OBJECT_OT_select_more(), OBJECT_OT_select_random(), OBJECT_OT_select_same_collection(), OBJECT_OT_shade_flat(), OBJECT_OT_shade_smooth(), OBJECT_OT_shaderfx_add(), OBJECT_OT_shaderfx_copy(), OBJECT_OT_shaderfx_move_down(), OBJECT_OT_shaderfx_move_to_index(), OBJECT_OT_shaderfx_move_up(), OBJECT_OT_shaderfx_remove(), OBJECT_OT_shape_key_add(), OBJECT_OT_shape_key_clear(), OBJECT_OT_shape_key_mirror(), OBJECT_OT_shape_key_move(), OBJECT_OT_shape_key_remove(), OBJECT_OT_shape_key_retime(), OBJECT_OT_skin_armature_create(), OBJECT_OT_skin_loose_mark_clear(), OBJECT_OT_skin_radii_equalize(), OBJECT_OT_skin_root_mark(), OBJECT_OT_speaker_add(), OBJECT_OT_surfacedeform_bind(), OBJECT_OT_text_add(), OBJECT_OT_track_clear(), OBJECT_OT_track_set(), OBJECT_OT_transfer_mode(), OBJECT_OT_transform_apply(), OBJECT_OT_transform_axis_target(), OBJECT_OT_transform_to_mouse(), OBJECT_OT_unlink_data(), OBJECT_OT_vertex_group_add(), OBJECT_OT_vertex_group_assign(), OBJECT_OT_vertex_group_assign_new(), OBJECT_OT_vertex_group_clean(), OBJECT_OT_vertex_group_copy(), OBJECT_OT_vertex_group_copy_to_selected(), OBJECT_OT_vertex_group_deselect(), OBJECT_OT_vertex_group_fix(), OBJECT_OT_vertex_group_invert(), OBJECT_OT_vertex_group_levels(), OBJECT_OT_vertex_group_limit_total(), OBJECT_OT_vertex_group_lock(), OBJECT_OT_vertex_group_mirror(), OBJECT_OT_vertex_group_move(), OBJECT_OT_vertex_group_normalize(), OBJECT_OT_vertex_group_normalize_all(), OBJECT_OT_vertex_group_quantize(), OBJECT_OT_vertex_group_remove(), OBJECT_OT_vertex_group_remove_from(), OBJECT_OT_vertex_group_select(), OBJECT_OT_vertex_group_set_active(), OBJECT_OT_vertex_group_smooth(), OBJECT_OT_vertex_group_sort(), OBJECT_OT_vertex_parent_set(), OBJECT_OT_vertex_weight_copy(), OBJECT_OT_vertex_weight_delete(), OBJECT_OT_vertex_weight_normalize_active_vertex(), OBJECT_OT_vertex_weight_paste(), OBJECT_OT_vertex_weight_set_active(), OBJECT_OT_visual_transform_apply(), OBJECT_OT_volume_add(), OBJECT_OT_volume_import(), OBJECT_OT_voxel_remesh(), OBJECT_OT_voxel_size_edit(), POSE_OT_constraint_add(), POSE_OT_constraint_add_with_targets(), POSE_OT_constraints_clear(), POSE_OT_constraints_copy(), POSE_OT_ik_add(), POSE_OT_ik_clear(), TRANSFORM_OT_vertex_random(), TRANSFORM_OT_vertex_warp(), WM_operatortype_append(), and WM_operatortypes_lineart().
Referenced by ED_spacetypes_init().
Definition at line 598 of file object_constraint.c.
References bPose::chanbase, bPoseChannel::constraints, Object::constraints, ListBase::first, bPoseChannel::next, NULL, OB_ARMATURE, Object::pose, test_constraints(), and Object::type.
Referenced by constraint_add_exec(), and ED_object_constraint_update().