Blender
V3.3
|
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_collection_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_modifier_types.h"
#include "DNA_scene_types.h"
#include "DNA_workspace_types.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_math_bits.h"
#include "BLI_rand.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_collection.h"
#include "BKE_context.h"
#include "BKE_deform.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_workspace.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "ED_armature.h"
#include "ED_keyframing.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_select_utils.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "object_intern.h"
Go to the source code of this file.
Selection by Links | |
enum | { OBJECT_SELECT_LINKED_IPO = 1 , OBJECT_SELECT_LINKED_OBDATA , OBJECT_SELECT_LINKED_MATERIAL , OBJECT_SELECT_LINKED_DUPGROUP , OBJECT_SELECT_LINKED_PARTICLE , OBJECT_SELECT_LINKED_LIBRARY , OBJECT_SELECT_LINKED_LIBRARY_OBDATA } |
static const EnumPropertyItem | prop_select_linked_types [] |
static bool | object_select_all_by_obdata (bContext *C, void *obdata) |
static bool | object_select_all_by_material (bContext *C, Material *mat) |
static bool | object_select_all_by_instance_collection (bContext *C, Object *ob) |
static bool | object_select_all_by_particle (bContext *C, Object *ob) |
static bool | object_select_all_by_library (bContext *C, Library *lib) |
static bool | object_select_all_by_library_obdata (bContext *C, Library *lib) |
void | ED_object_select_linked_by_id (bContext *C, ID *id) |
static int | object_select_linked_exec (bContext *C, wmOperator *op) |
void | OBJECT_OT_select_linked (wmOperatorType *ot) |
#define COLLECTION_MENU_MAX 24 |
Definition at line 802 of file object_select.c.
anonymous enum |
Definition at line 443 of file object_select.c.
anonymous enum |
Definition at line 727 of file object_select.c.
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 | ( | ViewLayer * | view_layer, |
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_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().
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().
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().
Definition at line 248 of file object_select.c.
References BA_SELECT, ViewLayer::basact, BASE_SELECTED, BASE_VISIBLE, BKE_view_layer_base_find(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), ED_object_base_activate(), ED_object_base_deselect_all(), ED_object_base_select(), Base::flag, NC_SCENE, ND_OB_SELECT, NULL, SEL_DESELECT, and WM_event_add_notifier().
Referenced by ED_object_jump_to_bone().
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().
|
static |
Definition at line 204 of file object_select.c.
References BASE_SELECTABLE, BASE_VISIBLE_DEPSGRAPH, and Base::flag.
Referenced by ED_object_find_first_by_data_id().
void OBJECT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1138 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_select_all_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_by_type | ( | wmOperatorType * | ot | ) |
Definition at line 412 of file object_select.c.
References BLT_I18NCONTEXT_ID_ID, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_select_by_type_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_object_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_grouped | ( | wmOperatorType * | ot | ) |
Definition at line 1082 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_select_grouped_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_select_grouped_types, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_less | ( | wmOperatorType * | ot | ) |
Definition at line 1389 of file object_select.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_select_less_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_linked | ( | wmOperatorType * | ot | ) |
Definition at line 697 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, object_select_linked_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_select_linked_types, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 1264 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_select_mirror_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_more | ( | wmOperatorType * | ot | ) |
Definition at line 1358 of file object_select.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_select_more_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_random | ( | wmOperatorType * | ot | ) |
Definition at line 1444 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_select_random_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_random().
Referenced by ED_operatortypes_object().
void OBJECT_OT_select_same_collection | ( | wmOperatorType * | ot | ) |
Definition at line 1199 of file object_select.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAX_ID_NAME, wmOperatorType::name, NULL, object_select_same_collection_exec(), objects_selectable_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
Definition at line 507 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), if(), Object::instance_collection, NULL, OB_DUPLICOLLECTION, and Object::transflag.
Referenced by object_select_linked_exec().
Definition at line 558 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and lib.
Referenced by ED_object_select_linked_by_id(), and object_select_linked_exec().
Definition at line 575 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and lib.
Referenced by object_select_linked_exec().
Definition at line 482 of file object_select.c.
References Freestyle::a, BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_object_material_get(), C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and Object::totcol.
Referenced by ED_object_select_linked_by_id(), and object_select_linked_exec().
Definition at line 465 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, and ED_object_base_select().
Referenced by ED_object_select_linked_by_id(), and object_select_linked_exec().
Definition at line 530 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), ParticleSystem::next, ParticleSystem::part, and psys_get_current().
Referenced by object_select_linked_exec().
|
static |
Definition at line 1112 of file object_select.c.
References C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_object_base_deselect_all_ex(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_all().
|
static |
Definition at line 383 of file object_select.c.
References BA_SELECT, C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_object_base_deselect_all(), ED_object_base_select(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), scene, SEL_DESELECT, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_by_type().
|
static |
Definition at line 1009 of file object_select.c.
References BKE_report(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), ED_object_base_deselect_all(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, NULL, OB_LAMP, OBACT, OBJECT_GRPSEL_CHILDREN, OBJECT_GRPSEL_CHILDREN_RECURSIVE, OBJECT_GRPSEL_COLLECTION, OBJECT_GRPSEL_COLOR, OBJECT_GRPSEL_HOOK, OBJECT_GRPSEL_KEYINGSET, OBJECT_GRPSEL_LIGHT_TYPE, OBJECT_GRPSEL_PARENT, OBJECT_GRPSEL_PASS, OBJECT_GRPSEL_SIBLINGS, OBJECT_GRPSEL_TYPE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, scene, SEL_DESELECT, select_grouped_children(), select_grouped_collection(), select_grouped_color(), select_grouped_index_object(), select_grouped_keyingset(), select_grouped_lighttype(), select_grouped_object_hooks(), select_grouped_parent(), select_grouped_siblings(), select_grouped_type(), type, Object::type, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_grouped().
|
static |
Definition at line 1373 of file object_select.c.
References C, CTX_data_scene(), DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, object_select_more_less(), OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_less().
|
static |
Definition at line 614 of file object_select.c.
References Object::actcol, BKE_object_material_get(), BKE_report(), BLI_listbase_is_empty(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Object::data, DEG_id_tag_update(), ED_object_base_deselect_all(), ED_outliner_select_sync_from_object_tag(), Object::id, Scene::id, ID_RECALC_SELECT, Object::instance_collection, ID::lib, NC_SCENE, ND_OB_SELECT, NULL, OBACT, 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_LINKED_DUPGROUP, OBJECT_SELECT_LINKED_IPO, OBJECT_SELECT_LINKED_LIBRARY, OBJECT_SELECT_LINKED_LIBRARY_OBDATA, OBJECT_SELECT_LINKED_MATERIAL, OBJECT_SELECT_LINKED_OBDATA, OBJECT_SELECT_LINKED_PARTICLE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::particlesystem, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, scene, SEL_DESELECT, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_linked().
|
static |
Definition at line 1224 of file object_select.c.
References BA_DESELECT, BA_SELECT, BKE_libblock_find_name(), BKE_view_layer_base_find(), BLI_string_flip_side_name(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ED_object_base_select(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_OB, ID_RECALC_SELECT, MAXBONENAME, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), scene, STREQ, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_mirror().
|
static |
Definition at line 1342 of file object_select.c.
References C, CTX_data_scene(), DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, object_select_more_less(), OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_more().
Definition at line 1290 of file object_select.c.
References BA_DESELECT, BA_SELECT, BASE_SELECTED, BLI_freelistN(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_selectable_bases(), CTX_data_view_layer(), PointerRNA::data, ED_object_base_select(), ListBase::first, Base::flag, Object::flag, Object::id, LIB_TAG_DOIT, LISTBASE_FOREACH, CollectionPointerLink::next, OB_DONE, Base::object, ViewLayer::object_bases, Object::parent, CollectionPointerLink::ptr, select(), and ID::tag.
Referenced by object_select_less_exec(), and object_select_more_exec().
|
static |
Definition at line 1410 of file object_select.c.
References BLI_array_randomize(), BLI_freelistN(), BLI_listbase_count(), C, CTX_data_scene(), CTX_data_selectable_bases(), PointerRNA::data, DEG_id_tag_update(), ED_object_base_select(), ED_outliner_select_sync_from_object_tag(), ListBase::first, Scene::id, ID_RECALC_SELECT, MEM_freeN, MEM_mallocN, NC_SCENE, ND_OB_SELECT, CollectionPointerLink::next, OPERATOR_FINISHED, wmOperator::ptr, CollectionPointerLink::ptr, RNA_enum_get(), RNA_float_get(), scene, seed, SEL_SELECT, select(), WM_event_add_notifier(), and WM_operator_properties_select_random_seed_increment_get().
Referenced by OBJECT_OT_select_random().
|
static |
Definition at line 1162 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_collection_has_object(), BKE_libblock_find_name(), C, CTX_DATA_BEGIN, CTX_DATA_COUNT, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_object_base_select(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_GR, ID_RECALC_SELECT, MAX_ID_NAME, NC_SCENE, ND_OB_SELECT, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_string_get(), scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_select_same_collection().
Definition at line 361 of file object_select.c.
References C, CTX_data_active_object(), CTX_data_edit_object(), and Object::mode.
Referenced by OBJECT_OT_select_all(), OBJECT_OT_select_by_type(), OBJECT_OT_select_grouped(), OBJECT_OT_select_linked(), OBJECT_OT_select_mirror(), OBJECT_OT_select_random(), and OBJECT_OT_select_same_collection().
Definition at line 760 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and Object::parent.
Referenced by object_select_grouped_exec().
Definition at line 804 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_collection_has_object(), C, collection_count(), COLLECTION_MENU_MAX, Main::collections, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), ED_object_base_select(), ListBase::first, Collection::id, IFACE_, ID::name, ID::next, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and uiItemStringO().
Referenced by object_select_grouped_exec().
Definition at line 943 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, Object::color, compare_v3v3(), CTX_DATA_BEGIN, CTX_DATA_END, and ED_object_base_select().
Referenced by object_select_grouped_exec().
Definition at line 929 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and Object::index.
Referenced by object_select_grouped_exec().
|
static |
Definition at line 958 of file object_select.c.
References ANIM_scene_get_active_keyingset(), ANIM_validate_keyingset(), BA_SELECT, BASE_SELECTED, BKE_report(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_scene(), ED_object_base_select(), ListBase::first, KeyingSet::flag, KS_Path::id, KEYINGSET_ABSOLUTE, KS_Path::next, NULL, KeyingSet::paths, and RPT_ERROR.
Referenced by object_select_grouped_exec().
Definition at line 897 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, Object::data, ED_object_base_select(), OB_LAMP, and Light::type.
Referenced by object_select_grouped_exec().
Definition at line 857 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_view_layer_base_find(), C, CTX_data_view_layer(), CTX_wm_view3d(), ED_object_base_select(), eModifierType_Hook, ListBase::first, Base::flag, Object::modifiers, ModifierData::next, HookModifierData::object, and ModifierData::type.
Referenced by object_select_grouped_exec().
Definition at line 780 of file object_select.c.
References BA_SELECT, BASE_SELECTABLE, BKE_view_layer_base_find(), C, CTX_data_active_base(), CTX_data_view_layer(), CTX_wm_view3d(), ED_object_base_activate(), ED_object_base_select(), Base::object, and Object::parent.
Referenced by object_select_grouped_exec().
Definition at line 884 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and Object::parent.
Referenced by object_select_grouped_exec().
Definition at line 915 of file object_select.c.
References BA_SELECT, BASE_SELECTED, C, CTX_DATA_BEGIN, CTX_DATA_END, ED_object_base_select(), and Object::type.
Referenced by object_select_grouped_exec().
|
static |
Definition at line 741 of file object_select.c.
Referenced by GPENCIL_OT_select_grouped(), blender::ed::space_node::NODE_OT_select_grouped(), OBJECT_OT_select_grouped(), and POSE_OT_select_grouped().
|
static |
Definition at line 453 of file object_select.c.
Referenced by OBJECT_OT_select_linked().