12#include <fmt/format.h>
73#include "RNA_prototypes.hh"
85using namespace blender::ed::outliner;
121 if (
wm->runtime->drags.first_) {
130 ®ion->
v2d, event->
mval[0], event->
mval[1], &view_mval[0], &view_mval[1]);
133 space_outliner, &space_outliner->
runtime->
tree, view_mval[1]);
136 bool is_over_icon =
false;
139 space_outliner, hovered_te, view_mval[0],
nullptr, &is_over_icon);
142 bool changed =
false;
168 ot->
name =
"Update Highlight";
169 ot->
idname =
"OUTLINER_OT_highlight_update";
170 ot->
description =
"Update the item highlight based on the current mouse position";
224 ®ion->
v2d, event->
mval[0], event->
mval[1], &view_mval[0], &view_mval[1]);
228 space_outliner, &space_outliner->
runtime->
tree, view_mval[1]);
234 if (te->
xs ==
data->x_location) {
245 data->prev_tselem =
nullptr;
274 space_outliner, &space_outliner->
runtime->
tree, view_mval[1]);
293 toggle_data->
open = open;
308 ot->
name =
"Open/Close";
309 ot->
idname =
"OUTLINER_OT_item_openclose";
310 ot->
description =
"Toggle whether item under cursor is open or closed";
331 bool add_textbut =
false;
382 BKE_report(reports,
RPT_INFO,
"Library path is not editable, use the Relocate operation");
411 if (!active_element) {
416 return active_element;
427 space_outliner, &space_outliner->
runtime->
tree, fmval[1]);
474 ot->
idname =
"OUTLINER_OT_item_rename";
489 "Rename the active item, rather than the one the mouse is over");
556 "Cannot delete library override id '%s', it is part of an override hierarchy",
564 Scene *scene_curr =
nullptr;
565 Scene *scene_new =
nullptr;
570 Library *lib = id_cast<Library *>(
id);
580 *bmain, *scene_curr, [&libraries](
const Scene &scene) ->
bool {
594 "Cannot find a scene to replace the active one, which belongs to the to be "
595 "deleted library '%s'",
608 "Cannot delete id '%s', indirectly used data-blocks need at least one user",
616 reports,
RPT_WARNING,
"Cannot delete currently visible workspace id '%s'",
id->name);
625 if (&scene_curr->
id ==
id) {
637 "Cannot find a scene to replace the active deleted one '%s'",
645 if (scene_curr && scene_new) {
687 int id_tagged_num = 0;
692 if (te->
idcode != 0 && tselem->
id) {
701 C, reports, &te_sub, mval, scene_replace_data)) != 0)
708 return id_tagged_num;
726 int id_tagged_num = 0;
730 C, op->
reports, &te, fmval, scene_replace_data)) != 0)
735 if (id_tagged_num == 0) {
753 ot->
name =
"Delete Data-Block";
754 ot->
idname =
"OUTLINER_OT_id_delete";
783 if (space_outliner ==
nullptr) {
787 if (!(old_id && new_id && (old_id != new_id) && (
GS(old_id->
name) ==
GS(new_id->
name)))) {
790 "Invalid old/new ID pair ('%s' / '%s')",
791 old_id ? old_id->
name :
"Invalid ID",
792 new_id ? new_id->
name :
"Invalid ID");
799 "Old ID '%s' is linked from a library, indirect usages of this data-block will "
823 ListBaseT<TreeElement> *tree,
871 ot->
name =
"Outliner ID Data Remap";
872 ot->
idname =
"OUTLINER_OT_id_remap";
890 ot->
srna,
"old_id", 0, 0, 0,
"Old ID",
"Old ID's session uid to remap data from", 0, 0);
899 "New ID's session uid to remap all selected IDs' users to",
938 "Cannot copy the linked data-block '%s' to the internal clipboard",
949 "Cannot copy the linked packed data-block '%s' to the internal clipboard",
957 "Copying ID '%s' is not possible, '%s' type of data-blocks is not supported",
962 return copybuffer.
id_add(
id,
971 ListBaseT<TreeElement> *tree,
1022 ot->
name =
"Outliner ID Data Copy";
1023 ot->
idname =
"OUTLINER_OT_id_copy";
1024 ot->
description =
"Copy the selected data-blocks to the internal clipboard";
1048 if (num_pasted == 0) {
1063 ot->
name =
"Outliner ID Data Paste";
1064 ot->
idname =
"OUTLINER_OT_id_paste";
1065 ot->
description =
"Paste data-blocks from the internal clipboard";
1086 ID *id_linked =
static_cast<ID *
>(id_linked_ptr.
data);
1095 "The active data-block '%s' is not a valid linked one",
1102 "The active data-block '%s' is used by other linked data",
1123 ot->
name =
"Relocate Linked ID";
1124 ot->
idname =
"OUTLINER_OT_id_linked_relocate";
1126 "Replace the active linked ID (and its dependencies if any) by another one, from the same "
1127 "or a different library";
1156 Library *lib = id_cast<Library *>(tselem->
id);
1189 if ((id_cast<Library *>(tselem->
id))->runtime->parent && !reload) {
1192 "Cannot relocate indirectly linked library '%s'",
1193 (id_cast<Library *>(tselem->
id))->runtime->filepath_abs);
1239 ot->
name =
"Relocate Library";
1240 ot->
idname =
"OUTLINER_OT_lib_relocate";
1241 ot->
description =
"Relocate the library under cursor";
1297 ot->
name =
"Reload Library";
1298 ot->
idname =
"OUTLINER_OT_lib_reload";
1299 ot->
description =
"Reload the library under cursor";
1328 int level = curlevel;
1332 level = std::max(lev, level);
1343 if (tselem->
flag & flag) {
1364 bool changed =
false;
1368 bool has_flag = (tselem->
flag & flag);
1371 tselem->
flag &= ~flag;
1375 else if (!has_flag) {
1376 tselem->
flag |= flag;
1391 bool changed =
false;
1395 tselem->
flag ^= flag;
1427 ot->
name =
"Expand/Collapse All";
1428 ot->
idname =
"OUTLINER_OT_expanded_toggle";
1480 ot->
name =
"Toggle Selected";
1481 ot->
idname =
"OUTLINER_OT_select_all";
1482 ot->
description =
"Toggle the Outliner selection of items";
1514 ot->
name =
"Filter";
1516 ot->
idname =
"OUTLINER_OT_start_filter";
1534 ot->
name =
"Clear Filter";
1536 ot->
idname =
"OUTLINER_OT_clear_filter";
1571 bool retval =
false;
1652 TreeStoreElem *tselem = TREESTORE(te);
1653 if (te->flag & TE_CHILD_NOT_IN_COLLECTION) {
1657 if (tselem->type == TSE_SOME_ID) {
1658 if (te->idcode == idcode) {
1677 scroll_to_te = iter;
1686 const int ytop = (scroll_to_te->
ys + (size_y / 2));
1687 const int delta_y = ytop - v2d->cur.ymax;
1701 C, space_outliner, scene, view_layer);
1703 if (active_element) {
1717 int ytop = (active_element->
ys + (size_y / 2));
1718 int delta_y = ytop - v2d->
cur.
ymax;
1734 ot->
name =
"Show Active";
1735 ot->
idname =
"OUTLINER_OT_show_active";
1737 "Open up the tree and adjust the view so that the active object is shown centered";
1774 ot->
name =
"Scroll Page";
1775 ot->
idname =
"OUTLINER_OT_scroll_page";
1800 if (curlevel <= level) {
1805 if (curlevel >= level) {
1846 ot->
name =
"Show/Hide One Level";
1847 ot->
idname =
"OUTLINER_OT_show_one_level";
1848 ot->
description =
"Expand/collapse all entries by one level";
1857 prop =
RNA_def_boolean(ot->
srna,
"open",
true,
"Open",
"Expand all entries one level deep");
1899 if (tselem->
id != id_cast<ID *>(scene)) {
1939 ot->
name =
"Show Hierarchy";
1940 ot->
idname =
"OUTLINER_OT_show_hierarchy";
1941 ot->
description =
"Open all object entries and close all others";
1982 ListBaseT<LinkData> hierarchy = {
nullptr,
nullptr};
1983 char *newpath =
nullptr;
2010 for (
const LinkData *ld = hierarchy.first(); ld; ld = ld->
next) {
2023 PropertyRNA *prop = tem_rna_prop->get_property_rna();
2030 char buf[128], *name;
2049 if (&temsub == temnext) {
2076 *
id =
static_cast<ID *
>(ptr.
data);
2096 *array_index = te->
index;
2112 hierarchy.free_no_destruct();
2146 char *path =
nullptr;
2147 int array_index = 0;
2172 arraylen = array_index;
2176 if (arraylen == array_index) {
2181 for (; array_index < arraylen; array_index++) {
2213 if (space_outliner ==
nullptr) {
2229 ot->
idname =
"OUTLINER_OT_drivers_add_selected";
2230 ot->
name =
"Add Drivers for Selected";
2231 ot->
description =
"Add drivers to selected items";
2252 if (space_outliner ==
nullptr) {
2268 ot->
idname =
"OUTLINER_OT_drivers_delete_selected";
2269 ot->
name =
"Delete Drivers for Selected";
2270 ot->
description =
"Delete drivers assigned to selected items";
2304 if (scene ==
nullptr) {
2315 if ((add) && (ks ==
nullptr)) {
2338 char *path =
nullptr;
2339 int array_index = 0;
2364 ks,
id,
nullptr, path, array_index,
eKSP_Settings(flag), groupmode);
2401 if (ks ==
nullptr) {
2405 if (space_outliner ==
nullptr) {
2421 ot->
idname =
"OUTLINER_OT_keyingset_add_selected";
2422 ot->
name =
"Keying Set Add Selected";
2423 ot->
description =
"Add selected items (blue-gray rows) to active Keying Set";
2446 if (space_outliner ==
nullptr) {
2462 ot->
idname =
"OUTLINER_OT_keyingset_remove_selected";
2463 ot->
name =
"Keying Set Remove Selected";
2464 ot->
description =
"Remove selected items (blue-gray rows) from active Keying Set";
2491 const std::array<int, INDEX_ID_MAX> &num_tagged)
2493 bool is_first =
true;
2495 message +=
IFACE_(
"None");
2505 if (num_tagged[i] != 0) {
2506 message += fmt::format(
2508 (is_first) ?
"" :
", ",
2510 (num_tagged[i] > 1) ?
2524 data.do_local_ids =
true;
2525 data.do_linked_ids =
true;
2526 data.do_recursive =
true;
2529 std::string unused_message;
2535 unused_message =
"";
2537 max_messages_width = std::max(
2541 return int(std::max(max_messages_width, 300.0f));
2546 const bool is_abort =
false)
2578 op->
customdata = MEM_new<LibQueryUnusedIDsData>(__func__);
2586 IFACE_(
"Purge Unused Data from This File"),
2597 op->
customdata = MEM_new<LibQueryUnusedIDsData>(__func__);
2617 "Attempt to delete scenes as part of a purge operation, should never happen");
2625 *bmain, *scene_curr, [](
const Scene &scene) ->
bool {
2636 "Cannot find a scene to replace the active purged one '%s'",
2700 op->
customdata = MEM_new<LibQueryUnusedIDsData>(__func__);
2704 std::string unused_message;
2708 local_col.
prop(ptr,
"do_local_ids",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
2711 local_sub.
label(unused_message, ICON_NONE);
2713 unused_message =
"";
2716 linked_col.
prop(ptr,
"do_linked_ids",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
2719 linked_sub.
label(unused_message, ICON_NONE);
2727 ot->
idname =
"OUTLINER_OT_orphans_purge";
2728 ot->
name =
"Purge All";
2729 ot->
description =
"Clear all orphaned data-blocks without any users from the file";
2748 "Local Data-blocks",
2749 "Include unused local data-blocks into deletion");
2753 "Linked Data-blocks",
2754 "Include unused linked data-blocks into deletion");
2760 "Recursively check for indirectly unused data-blocks, ensuring that no orphaned "
2761 "data-blocks remain after execution");
2785 ot->
idname =
"OUTLINER_OT_orphans_manage";
2786 ot->
name =
"Manage Unused Data";
2787 ot->
description =
"Open a window to manage unused data";
Blender kernel action and pose functionality.
General operations, lookup, etc. for blender objects.
#define BLF_DRAW_STR_DUMMY_MAX
#define BLI_path_join(...)
#define BLT_I18NCONTEXT_ID_ID
ID and Library types, which are fundamental for SDNA.
#define ID_IS_PACKED(_id)
#define ID_IS_OVERRIDE_LIBRARY_REAL(_id)
#define ID_IS_LINKED(_id)
#define ID_IS_EDITABLE(_id)
#define ID_REAL_USERS(id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
#define TSE_IS_REAL_ID(_tse)
Read Blender memory allocation and freeing.
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
void add_multiple_new(Span< Key > keys)
bool contains(const Key &key) const
ID * id_add(const ID *id, IDAddOptions options, FunctionRef< IDAddOperations(LibraryIDLinkCallbackData *cb_data, IDAddOptions options)> dependencies_filter_cb=nullptr)
bool write_as_copypaste_buffer(const char *write_filepath, ReportList &reports)
const PointerRNA & get_pointer_rna() const
virtual PropertyRNA * get_property_rna() const
void all_open(const SpaceOutliner &space_outliner, const ConstVisitorFn visitor)
void all(const SpaceOutliner &space_outliner, const ConstVisitorFn visitor)
void OUTLINER_OT_expanded_toggle(wmOperatorType *ot)
bool outliner_item_is_co_within_close_toggle(const TreeElement *te, float view_co_x)
static wmOperatorStatus outliner_keyingset_removeitems_exec(bContext *C, wmOperator *)
static void tree_element_show_hierarchy(Scene *scene, SpaceOutliner *space_outliner)
TreeElement * outliner_find_item_at_y(const SpaceOutliner *space_outliner, const ListBaseT< TreeElement > *tree, float view_co_y)
void outliner_tag_redraw_avoid_rebuild_on_open_change(const SpaceOutliner *space_outliner, ARegion *region)
static void tree_element_to_path(TreeElement *te, TreeStoreElem *tselem, ID **id, char **path, int *array_index, short *flag, eKSP_Grouping *)
void OUTLINER_OT_item_rename(wmOperatorType *ot)
static wmOperatorStatus outliner_item_openclose_modal(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus outliner_id_delete_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static TreeElement * outliner_item_rename_find_hovered(const SpaceOutliner *space_outliner, ARegion *region, const wmEvent *event)
static void do_outliner_keyingset_editop(SpaceOutliner *space_outliner, KeyingSet *ks, const short mode)
static wmOperatorStatus outliner_orphans_manage_invoke(bContext *C, wmOperator *, const wmEvent *)
void OUTLINER_OT_show_hierarchy(wmOperatorType *ot)
int outliner_flag_is_any_test(ListBaseT< TreeElement > *lb, eTreeStoreElem_Flag flag, const int curlevel)
@ KEYINGSET_EDITMODE_REMOVE
static void outliner_orphans_purge_cancel(bContext *C, wmOperator *op)
static wmOperatorStatus outliner_id_copy_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_highlight_update(wmOperatorType *ot)
bool outliner_is_collection_tree_element(const TreeElement *te)
static wmOperatorStatus outliner_id_relocate_invoke(bContext *C, wmOperator *op, const wmEvent *)
void OUTLINER_OT_drivers_add_selected(wmOperatorType *ot)
static wmOperatorStatus outliner_show_active_exec(bContext *C, wmOperator *)
void OUTLINER_OT_select_all(wmOperatorType *ot)
TreeElement * outliner_find_item_at_x_in_row(const SpaceOutliner *space_outliner, TreeElement *parent_te, float view_co_x, bool *r_is_merged_icon, bool *r_is_over_icon)
void OUTLINER_OT_id_linked_relocate(wmOperatorType *ot)
static wmOperatorStatus outliner_id_remap_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_lib_relocate(wmOperatorType *ot)
static void do_outliner_drivers_editop(SpaceOutliner *space_outliner, ReportList *reports, short mode)
static wmOperatorStatus lib_relocate(bContext *C, TreeElement *te, TreeStoreElem *tselem, wmOperatorType *ot, const bool reload)
static wmOperatorStatus outliner_item_openclose_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static void outliner_orphans_purge_ui(bContext *, wmOperator *op)
static wmOperatorStatus outliner_one_level_exec(bContext *C, wmOperator *op)
static void outliner_orphans_purge_cleanup(bContext *C, wmOperator *op, const bool is_abort=false)
void id_delete_tag_fn(bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static void outliner_id_remap_ui(bContext *C, wmOperator *op)
static wmOperatorStatus outliner_lib_relocate_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus outliner_id_remap_exec(bContext *C, wmOperator *op)
static bool id_delete_tag(bContext *C, ReportList *reports, TreeElement *te, TreeStoreElem *tselem, SceneReplaceData &scene_replace_data)
static int unused_message_popup_width_compute(bContext *C)
static wmOperatorStatus outliner_drivers_deletesel_exec(bContext *C, wmOperator *op)
static wmOperatorStatus outliner_scroll_page_exec(bContext *C, wmOperator *op)
static int outliner_count_levels(ListBaseT< TreeElement > *lb, const int curlevel)
static bool outliner_id_remap_find_tree_element(bContext *C, wmOperator *op, ListBaseT< TreeElement > *tree, const float y)
void OUTLINER_OT_id_paste(wmOperatorType *ot)
void OUTLINER_OT_clear_filter(wmOperatorType *ot)
TreeElement * outliner_find_id(SpaceOutliner *space_outliner, ListBaseT< TreeElement > *lb, const ID *id, TreeElementFlag exclude_flags)
void outliner_scroll_to_active(SpaceOutliner *space_outliner, ARegion *region, short idcode)
bool outliner_flag_set(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag, const short set)
void OUTLINER_OT_start_filter(wmOperatorType *ot)
static wmOperatorStatus outliner_drivers_addsel_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_drivers_delete_selected(wmOperatorType *ot)
TreeElement * outliner_find_posechannel(ListBaseT< TreeElement > *lb, const bPoseChannel *pchan)
void OUTLINER_OT_show_one_level(wmOperatorType *ot)
void OUTLINER_OT_show_active(wmOperatorType *ot)
static wmOperatorStatus outliner_toggle_expanded_exec(bContext *C, wmOperator *)
static TreeElement * outliner_show_active_get_element(const bContext *C, SpaceOutliner *space_outliner, const Scene *scene, ViewLayer *view_layer)
static wmOperatorStatus outliner_orphans_purge_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_id_copy(wmOperatorType *ot)
static void outliner_show_active(SpaceOutliner *space_outliner, ARegion *region, TreeElement *te, ID *id)
void OUTLINER_OT_orphans_manage(wmOperatorType *ot)
static wmOperatorStatus outliner_start_filter_exec(bContext *C, wmOperator *)
Collection * outliner_collection_from_tree_element(const TreeElement *te)
void outliner_scroll_view(SpaceOutliner *space_outliner, ARegion *region, int delta_y)
void lib_relocate_fn(bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static wmOperatorStatus outliner_keyingset_additems_exec(bContext *C, wmOperator *op)
TreeElement * outliner_find_editbone(ListBaseT< TreeElement > *lb, const EditBone *ebone)
void OUTLINER_OT_lib_reload(wmOperatorType *ot)
void outliner_item_openclose(TreeElement *te, bool open, bool toggle_all)
void OUTLINER_OT_scroll_page(wmOperatorType *ot)
void OUTLINER_OT_keyingset_remove_selected(wmOperatorType *ot)
void OUTLINER_OT_id_remap(wmOperatorType *ot)
void OUTLINER_OT_id_delete(wmOperatorType *ot)
void id_remap_fn(bContext *C, TreeStoreElem *tselem)
TreeElementT * tree_element_cast(const TreeElement *te)
static wmOperatorStatus outliner_orphans_purge_invoke(bContext *C, wmOperator *op, const wmEvent *)
void OUTLINER_OT_keyingset_add_selected(wmOperatorType *ot)
static bool ed_operator_outliner_id_orphans_active(bContext *C)
static void do_item_rename(ARegion *region, TreeElement *te, TreeStoreElem *tselem, ReportList *reports)
static wmOperatorStatus outliner_lib_relocate_invoke_do(bContext *C, ReportList *reports, TreeElement *te, const float mval[2], const bool reload)
@ TE_CHILD_NOT_IN_COLLECTION
@ TE_PRETEND_HAS_CHILDREN
static bool ed_operator_outliner_datablocks_active(bContext *C)
static int outliner_id_delete_tag(bContext *C, ReportList *reports, TreeElement *te, const float mval[2], SceneReplaceData &scene_replace_data)
void lib_reload_fn(bContext *C, ReportList *, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
void outliner_cleanup_tree(SpaceOutliner *space_outliner)
static wmOperatorStatus outliner_item_rename_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void OUTLINER_OT_item_openclose(wmOperatorType *ot)
static int subtree_has_objects(ListBaseT< TreeElement > *lb)
@ DRIVERS_EDITMODE_REMOVE
static bool outliner_id_copy_tag_id(ID *id, bke::blendfile::PartialWriteContext ©buffer, ReportList *reports)
bool outliner_item_is_co_over_name(const TreeElement *te, float view_co_x)
static KeyingSet * verify_active_keyingset(Scene *scene, short add)
static bool outliner_open_back(TreeElement *te)
bool outliner_flag_flip(SpaceOutliner &space_outliner, const eTreeStoreElem_Flag flag)
static int outliner_id_copy_tag(SpaceOutliner *space_outliner, ListBaseT< TreeElement > *tree, bke::blendfile::PartialWriteContext ©buffer, ReportList *reports)
static void outliner_openclose_level(ListBaseT< TreeElement > *lb, int curlevel, int level, int open)
void outliner_set_coordinates(const ARegion *region, SpaceOutliner *space_outliner)
static wmOperatorStatus outliner_clear_filter_exec(bContext *C, wmOperator *)
static wmOperatorStatus outliner_id_paste_exec(bContext *C, wmOperator *op)
void item_rename_fn(bContext *C, ReportList *reports, Scene *, TreeElement *te, TreeStoreElem *, TreeStoreElem *tselem)
static void outliner_copybuffer_filepath_get(char filepath[FILE_MAX], size_t filepath_maxncpy)
static void unused_message_gen(std::string &message, const std::array< int, INDEX_ID_MAX > &num_tagged)
static wmOperatorStatus outliner_highlight_update_invoke(bContext *C, wmOperator *, const wmEvent *event)
static wmOperatorStatus outliner_show_hierarchy_exec(bContext *C, wmOperator *)
static wmOperatorStatus outliner_lib_reload_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool outliner_orphans_purge_check(bContext *C, wmOperator *op)
void OUTLINER_OT_orphans_purge(wmOperatorType *ot)
static wmOperatorStatus outliner_select_all_exec(bContext *C, wmOperator *op)
static TreeElement * outliner_item_rename_find_active(const SpaceOutliner *space_outliner, ReportList *reports)
TreeElement * outliner_find_element_with_flag(const ListBaseT< TreeElement > *lb, short flag)
std::string filename(const std::string_view &str, size_t pos)
void template_ID_session_uid(Layout &layout, bContext *C, PointerRNA *ptr, StringRefNull propname, short idcode)
const uiStyle * style_get_dpi()
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
void WM_main_add_notifier(uint type, void *reference)
const char * BKE_idtype_idcode_to_name(short idcode)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
bPoseChannel * BKE_pose_channel_active(Object *ob, bool check_bonecoll)
ScrArea * CTX_wm_area(const bContext *C)
short BKE_idtype_index_to_idcode(int idtype_index)
int ANIM_add_driver(ReportList *reports, ID *id, const char rna_path[], int array_index, short flag, eDriver_Types type)
Main Driver Management API calls.
int RNA_enum_get(PointerRNA *ptr, const char *name)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
const EnumPropertyItem rna_enum_id_type_items[]
Scene * BKE_scene_find_replacement(const Main &bmain, const Scene &scene, FunctionRef< bool(const Scene &scene)> scene_validate_cb=nullptr)
@ RPT_ERROR_INVALID_INPUT
void BKE_lib_query_unused_ids_tag(Main *bmain, int tag, LibQueryUnusedIDsData ¶meters)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
float BLF_width(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
ID * BKE_libblock_find_session_uid(Main *bmain, short type, uint32_t session_uid)
void WM_operator_properties_free(PointerRNA *ptr)
KeyingSet * BKE_keyingset_add(ListBaseT< KeyingSet > *list, const char idname[], const char name[], eKS_Settings flag, eInsertKeyFlags keyingflag)
void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *space_outliner)
bool BKE_idtype_idcode_is_linkable(short idcode)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
void void BKE_libblock_remap(Main *bmain, void *old_idv, void *new_idv, int remap_flags) ATTR_NONNULL(1
void BKE_keyingset_free_path(KeyingSet *ks, KS_Path *ksp)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PointerRNA WM_operator_properties_create_ptr(wmOperatorType *ot)
int RNA_int_get(PointerRNA *ptr, const char *name)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
bool ED_operator_outliner_active(bContext *C)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
@ ID_REMAP_SKIP_NEVER_NULL_USAGE
@ ID_REMAP_SKIP_INDIRECT_USAGE
void BKE_workspace_id_tag_all_visible(Main *bmain, int tag) ATTR_NONNULL()
const char * BKE_id_name(const ID &id)
void ED_region_tag_redraw(ARegion *region)
void GPU_materials_free(Main *bmain)
@ LIBOVERRIDE_FLAG_NO_HIERARCHY
void BKE_main_id_tag_idcode(Main *mainvar, short type, int tag, bool value)
@ TSE_LIBRARY_OVERRIDE_BASE
@ TSE_BONE_COLLECTION_BASE
@ TSE_VIEW_COLLECTION_BASE
@ TSE_SCENE_COLLECTION_BASE
@ TSE_GPENCIL_EFFECT_BASE
ViewLayer * CTX_data_view_layer(const bContext *C)
void WM_operator_properties_select_all(wmOperatorType *ot)
bool RNA_property_array_check(PropertyRNA *prop)
EditBone * CTX_data_active_bone(const bContext *C)
PropertyType RNA_property_type(PropertyRNA *prop)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool ED_scene_replace_active_for_deletion(bContext &C, Main &bmain, Scene &scene, Scene *scene_new=nullptr)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
const IDTypeInfo * BKE_idtype_get_info_from_id(const ID *id)
bool RNA_property_anim_editable(const PointerRNA *ptr, PropertyRNA *prop_orig)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void BKE_lib_query_unused_ids_amounts(Main *bmain, LibQueryUnusedIDsData ¶meters)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
Object * BKE_object_pose_armature_get(Object *ob)
int ED_screen_area_active(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
size_t BKE_id_multi_tagged_delete(Main *bmain, const BKEIDDeleteOptions &options={}) ATTR_NONNULL()
bool ANIM_remove_driver(ID *id, const char rna_path[], int array_index)
Main Driver Management API calls.
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
const char * BKE_idtype_idcode_to_name_plural(short idcode)
wmOperatorStatus WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message, const bool show_icon)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
const char * BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
void BKE_main_id_tag_all(Main *mainvar, int tag, bool value)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_event_drag_start_mval(const wmEvent *event, const ARegion *region, int r_mval[2])
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
bool RNA_struct_is_ID(const StructRNA *type)
wmWindow * WM_window_open_temp(bContext *C, const char *title, int space_type, bool dialog)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
wmEventHandler_Op * WM_event_add_modal_handler(bContext *C, wmOperator *op)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
Main * CTX_data_main(const bContext *C)
wmOperatorStatus WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
ID_Type GS(const char *name)
void BLI_path_split_dir_file(const char *filepath, char *dir, size_t dir_maxncpy, char *file, size_t file_maxncpy) ATTR_NONNULL(1
char * RNA_path_append(const char *path, const PointerRNA *, PropertyRNA *prop, int intkey, const char *strkey)
int BKE_copybuffer_paste(bContext *C, const char *libname, int flag, ReportList *reports, uint64_t id_types_mask)
void BKE_main_lib_objects_recalc_all(Main *bmain)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
KS_Path * BKE_keyingset_find_path(KeyingSet *ks, ID *id, const char group_name[], const char rna_path[], int array_index, int group_mode)
@ CREATEDRIVER_WITH_DEFAULT_DVAR
bool BKE_library_ID_is_indirectly_used(Main *bmain, void *idv)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void ED_region_activate_rna_prop(bContext *C, ARegion *region, const void *data, StringRefNull prop_name)
bool ED_operator_region_outliner_active(bContext *C)
bool BLI_rctf_isect_y(const rctf *rect, float y)
KS_Path * BKE_keyingset_add_path(KeyingSet *ks, ID *id, const char group_name[], const char rna_path[], int array_index, eKSP_Settings flag, eKSP_Grouping groupmode)
ARegion * CTX_wm_region(const bContext *C)
void ED_region_tag_redraw_no_rebuild(ARegion *region)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
void ED_area_tag_redraw(ScrArea *area)
@ IDTYPE_FLAGS_NO_LIBLINKING
#define TSELEM_OPEN(telm, sv)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< KS_Path > paths
bke::library::LibraryRuntime * runtime
ListBaseT< struct KeyingSet > keyingsets
eSpaceOutliner_Mode outlinevis
ed::outliner::SpaceOutliner_Runtime * runtime
Vector< Library * > archived_libraries
TreeStoreElem * prev_tselem
Scene * active_scene_get(bContext *C)
Scene * scene_to_activate
ListBaseT< ed::outliner::TreeElement > tree
TreeStoreElem * store_elem
ListBaseT< TreeElement > subtree
void use_property_split_set(bool is_sep)
void label(StringRef name, int icon)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
Layout & column(bool align)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) check(bContext *C, wmOperator *op)
void(*) cancel(bContext *C, wmOperator *op)
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports