Blender
V3.3
|
#include <string.h>
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_collection_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_collection.h"
#include "BKE_context.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "UI_interface_icons.h"
#include "object_intern.h"
Go to the source code of this file.
|
static |
Definition at line 417 of file object_collection.c.
References BKE_collection_add(), BKE_collection_object_add(), C, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Collection::id, id_fake_user_set(), ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_collection_add().
|
static |
Definition at line 375 of file object_collection.c.
References BKE_collection_add(), BKE_collection_object_add(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), Collection::id, id_fake_user_set(), ID_RECALC_COPY_ON_WRITE, MAX_ID_NAME, NA_EDITED, NC_GROUP, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), and WM_event_add_notifier().
Referenced by COLLECTION_OT_create().
|
static |
Definition at line 453 of file object_collection.c.
References BKE_collection_has_object(), BKE_collection_object_add(), BKE_collection_object_cyclic_check(), BKE_report(), BLI_findlink(), C, Main::collections, CTX_data_main(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), ELEM, Collection::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_collection_link().
|
static |
Definition at line 98 of file object_collection.c.
References BKE_collection_object_find(), NULL, and scene.
Referenced by collection_objects_remove_exec(), objects_add_active_exec(), and objects_remove_active_exec().
|
static |
Definition at line 45 of file object_collection.c.
References BKE_collection_object_find(), C, count, CTX_data_main(), CTX_data_scene(), DummyRNA_NULL_items, ED_object_context(), Collection::id, ID::name, NULL, RNA_enum_item_add(), RNA_enum_item_add_separator(), RNA_enum_item_end(), scene, and UI_icon_color_from_collection().
Referenced by COLLECTION_OT_objects_add_active(), COLLECTION_OT_objects_remove(), and COLLECTION_OT_objects_remove_active().
|
static |
Definition at line 273 of file object_collection.c.
References BKE_object_groups_clear(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), DEG_relations_tag_update(), NA_EDITED, NC_GROUP, NULL, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by COLLECTION_OT_objects_remove_all().
|
static |
Definition at line 304 of file object_collection.c.
References BKE_collection_has_object(), BKE_collection_object_remove(), C, collection_object_active_find_index(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), FOREACH_COLLECTION_BEGIN, FOREACH_COLLECTION_END, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_GROUP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, and WM_event_add_notifier().
Referenced by COLLECTION_OT_objects_remove().
void COLLECTION_OT_create | ( | wmOperatorType * | ot | ) |
Definition at line 397 of file object_collection.c.
References collection_create_exec(), wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_object().
void COLLECTION_OT_objects_add_active | ( | wmOperatorType * | ot | ) |
Definition at line 171 of file object_collection.c.
References collection_object_active_itemf(), wmOperatorType::description, DummyRNA_NULL_items, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, objects_add_active_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void COLLECTION_OT_objects_remove | ( | wmOperatorType * | ot | ) |
Definition at line 346 of file object_collection.c.
References collection_object_active_itemf(), collection_objects_remove_exec(), wmOperatorType::description, DummyRNA_NULL_items, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void COLLECTION_OT_objects_remove_active | ( | wmOperatorType * | ot | ) |
Definition at line 244 of file object_collection.c.
References collection_object_active_itemf(), wmOperatorType::description, DummyRNA_NULL_items, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, objects_remove_active_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_object().
void COLLECTION_OT_objects_remove_all | ( | wmOperatorType * | ot | ) |
Definition at line 289 of file object_collection.c.
References collection_objects_remove_all_exec(), wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
|
static |
Definition at line 529 of file object_collection.c.
References BKE_collection_object_remove(), BKE_report(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), Collection::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_collection_remove().
|
static |
Definition at line 570 of file object_collection.c.
References BKE_id_delete(), BKE_report(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_relations_tag_update(), IDOverrideLibrary::hierarchy_root, Collection::id, ID_IS_OVERRIDE_LIBRARY, NC_OBJECT, ND_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ID::override_library, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_collection_unlink().
void OBJECT_OT_collection_add | ( | wmOperatorType * | ot | ) |
Definition at line 438 of file object_collection.c.
References collection_add_exec(), wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_collection_link | ( | wmOperatorType * | ot | ) |
Definition at line 505 of file object_collection.c.
References collection_link_exec(), wmOperatorType::description, DummyRNA_NULL_items, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_ENUM_NO_TRANSLATE, RNA_collection_local_itemf(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), wmOperatorType::srna, and WM_enum_search_invoke().
Referenced by ED_operatortypes_object().
void OBJECT_OT_collection_objects_select | ( | wmOperatorType * | ot | ) |
Definition at line 636 of file object_collection.c.
References wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and select_grouped_exec().
Referenced by ED_operatortypes_object().
void OBJECT_OT_collection_remove | ( | wmOperatorType * | ot | ) |
Definition at line 555 of file object_collection.c.
References collection_remove_exec(), wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
void OBJECT_OT_collection_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 596 of file object_collection.c.
References collection_unlink_exec(), wmOperatorType::description, ED_operator_objectmode(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_object().
|
static |
Definition at line 115 of file object_collection.c.
References BKE_collection_has_object(), BKE_collection_object_add(), BKE_collection_object_cyclic_check(), BKE_report(), C, collection_object_active_find_index(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_object_context(), FOREACH_COLLECTION_BEGIN, FOREACH_COLLECTION_END, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_GROUP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, scene, and WM_event_add_notifier().
Referenced by COLLECTION_OT_objects_add_active().
|
static |
Definition at line 200 of file object_collection.c.
References BKE_collection_has_object(), BKE_collection_object_remove(), BKE_report(), C, collection_object_active_find_index(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), FOREACH_COLLECTION_BEGIN, FOREACH_COLLECTION_END, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_GROUP, NULL, OBACT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, scene, and WM_event_add_notifier().
Referenced by COLLECTION_OT_objects_remove_active().
|
static |
Definition at line 612 of file object_collection.c.
References BA_SELECT, BASE_SELECTABLE, BASE_SELECTED, BKE_collection_has_object_recursive(), C, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, DEG_id_tag_update(), ED_object_base_select(), Scene::id, ID_RECALC_SELECT, NC_SCENE, ND_OB_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_main_add_notifier().
Referenced by OBJECT_OT_collection_objects_select().