Blender  V3.3
Classes | Variables
outliner_tools.cc File Reference
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curves_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_light_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_pointcloud_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_simulation_types.h"
#include "DNA_volume_types.h"
#include "DNA_world_types.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_linklist.h"
#include "BLI_map.hh"
#include "BLI_set.hh"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "BKE_anim_data.h"
#include "BKE_animsys.h"
#include "BKE_armature.h"
#include "BKE_collection.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_idtype.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.h"
#include "BKE_lib_query.h"
#include "BKE_lib_remap.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_scene.h"
#include "ED_screen.h"
#include "ED_sequencer.h"
#include "ED_undo.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "../../blender/blenloader/BLO_readfile.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "SEQ_relations.h"
#include "SEQ_sequencer.h"
#include "outliner_intern.hh"
#include "tree/tree_element_rna.hh"
#include "tree/tree_element_seq.hh"
#include "tree/tree_iterator.hh"

Go to the source code of this file.

Classes

struct  MergedSearchData
 
struct  OutlinerLiboverrideDataIDRoot
 
struct  OutlinerLibOverrideData
 

Functions

Search Utilities
static void merged_element_search_fn_recursive (const ListBase *tree, short tselem_type, short type, const char *str, uiSearchItems *items)
 
static void merged_element_search_update_fn (const bContext *UNUSED(C), void *data, const char *str, uiSearchItems *items, const bool UNUSED(is_first))
 
static void merged_element_search_exec_fn (struct bContext *C, void *UNUSED(arg1), void *element)
 
static uiBlockmerged_element_search_menu (bContext *C, ARegion *region, void *data)
 
void merged_element_search_menu_invoke (bContext *C, TreeElement *parent_te, TreeElement *activate_te)
 
static void object_select_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
Callbacks (Selection, Users & Library) Utilities
static void object_select_hierarchy_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *UNUSED(tsep), TreeStoreElem *UNUSED(tselem), void *UNUSED(user_data))
 
static void object_deselect_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void outliner_object_delete_fn (bContext *C, ReportList *reports, Scene *scene, Object *ob)
 
static void id_local_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void id_override_library_create_hierarchy_pre_process_fn (bContext *C, ReportList *reports, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem, void *user_data)
 
static void id_override_library_create_hierarchy (Main &bmain, Scene *scene, ViewLayer *view_layer, OutlinerLibOverrideData &data, ID *id_hierarchy_root_reference, Vector< OutlinerLiboverrideDataIDRoot > &data_idroots, bool &r_aggregated_success)
 
static void id_override_library_create_hierarchy_process (bContext *C, ReportList *reports, OutlinerLibOverrideData &data)
 
static void id_override_library_reset_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *user_data)
 
static void id_override_library_clear_single_fn (bContext *C, ReportList *reports, Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void id_override_library_resync_fn (bContext *UNUSED(C), ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *user_data)
 
static void id_override_library_resync_hierarchy_process (bContext *C, ReportList *reports, OutlinerLibOverrideData &data)
 
static void id_override_library_delete_hierarchy_fn (bContext *UNUSED(C), ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *user_data)
 
static void id_override_library_delete_hierarchy_process (bContext *C, ReportList *UNUSED(reports), OutlinerLibOverrideData &data)
 
static void id_fake_user_set_fn (bContext *UNUSED(C), ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void id_fake_user_clear_fn (bContext *UNUSED(C), ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void id_select_linked_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *UNUSED(tsep), TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void singleuser_action_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void singleuser_world_fn (bContext *C, ReportList *UNUSED(reports), Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
void outliner_do_object_operation_ex (bContext *C, ReportList *reports, Scene *scene_act, SpaceOutliner *space_outliner, ListBase *lb, outliner_operation_fn operation_fn, void *user_data, bool recurse_selected)
 
void outliner_do_object_operation (bContext *C, ReportList *reports, Scene *scene_act, SpaceOutliner *space_outliner, ListBase *lb, outliner_operation_fn operation_fn)
 
Internal Tagging Utilities
static void clear_animdata_fn (int UNUSED(event), TreeElement *UNUSED(te), TreeStoreElem *tselem, void *UNUSED(arg))
 
static void unlinkact_animdata_fn (int UNUSED(event), TreeElement *UNUSED(te), TreeStoreElem *tselem, void *UNUSED(arg))
 
static void cleardrivers_animdata_fn (int UNUSED(event), TreeElement *UNUSED(te), TreeStoreElem *tselem, void *UNUSED(arg))
 
static void refreshdrivers_animdata_fn (int UNUSED(event), TreeElement *UNUSED(te), TreeStoreElem *tselem, void *UNUSED(arg))
 
Outliner Set Active Action Operator
static void outliner_do_id_set_operation (SpaceOutliner *space_outliner, int type, ID *newid, void(*operation_fn)(TreeElement *, TreeStoreElem *, TreeStoreElem *, ID *))
 
static void actionset_id_fn (TreeElement *UNUSED(te), TreeStoreElem *tselem, TreeStoreElem *tsep, ID *actId)
 
static int outliner_action_set_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_action_set (wmOperatorType *ot)
 
Data Menu Operator
static int outliner_data_operation_exec (bContext *C, wmOperator *op)
 
static const EnumPropertyItemoutliner_data_op_sets_enum_item_fn (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *UNUSED(r_free))
 
void OUTLINER_OT_data_operation (wmOperatorType *ot)
 
Context Menu Operator
static int outliner_operator_menu (bContext *C, const char *opname)
 
static int do_outliner_operation_event (bContext *C, ReportList *reports, ARegion *region, SpaceOutliner *space_outliner, TreeElement *te)
 
static int outliner_operation (bContext *C, wmOperator *op, const wmEvent *event)
 
void OUTLINER_OT_operation (wmOperatorType *ot)
 

Variables

static CLG_LogRef LOG = {"ed.outliner.tools"}
 

ID/Library/Data Set/Un-link Utilities

enum  eOutlinerLibOpSelectionSet { OUTLINER_LIB_SELECTIONSET_SELECTED , OUTLINER_LIB_LIB_SELECTIONSET_CONTENT , OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT }
 
typedef enum eOutlinerLibOpSelectionSet eOutlinerLibOpSelectionSet
 
static const EnumPropertyItem prop_lib_op_selection_set []
 
static void get_element_operation_type (TreeElement *te, int *scenelevel, int *objectlevel, int *idlevel, int *datalevel)
 
static TreeElementget_target_element (SpaceOutliner *space_outliner)
 
static bool outliner_operation_tree_element_poll (bContext *C)
 
static void unlink_action_fn (bContext *C, ReportList *reports, Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void unlink_material_fn (bContext *UNUSED(C), ReportList *reports, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void unlink_texture_fn (bContext *UNUSED(C), ReportList *reports, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void unlink_collection_fn (bContext *C, ReportList *reports, Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void unlink_object_fn (bContext *C, ReportList *reports, Scene *UNUSED(scene), TreeElement *te, TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void unlink_world_fn (bContext *UNUSED(C), ReportList *reports, Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *tsep, TreeStoreElem *tselem, void *UNUSED(user_data))
 
static void outliner_do_libdata_operation (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, outliner_operation_fn operation_fn, void *user_data)
 
static void outliner_do_libdata_operation_selection_set (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, const ListBase &subtree, const bool has_parent_selected, outliner_operation_fn operation_fn, eOutlinerLibOpSelectionSet selection_set, void *user_data)
 
static void outliner_do_libdata_operation_selection_set (bContext *C, ReportList *reports, Scene *scene, SpaceOutliner *space_outliner, outliner_operation_fn operation_fn, eOutlinerLibOpSelectionSet selection_set, void *user_data)
 

Scene Menu Operator

enum  eOutliner_PropSceneOps { OL_SCENE_OP_DELETE = 1 }
 
static const EnumPropertyItem prop_scene_op_types []
 
static bool outliner_do_scene_operation (bContext *C, SpaceOutliner *space_outliner, eOutliner_PropSceneOps event, bool(*operation_fn)(bContext *, eOutliner_PropSceneOps, TreeElement *, TreeStoreElem *))
 
static bool scene_fn (bContext *C, eOutliner_PropSceneOps event, TreeElement *UNUSED(te), TreeStoreElem *tselem)
 
static int outliner_scene_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_scene_operation (wmOperatorType *ot)
 

Library Overrides Operation Menu.

enum  eOutlinerLibOverrideOpTypes {
  OUTLINER_LIBOVERRIDE_OP_INVALID = 0 , OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY , OUTLINER_LIBOVERRIDE_OP_RESET , OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE ,
  OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY , OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE , OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY
}
 
static const EnumPropertyItem prop_liboverride_op_types []
 
static const EnumPropertyItem prop_liboverride_troubleshoot_op_types []
 
static bool outliner_liboverride_operation_poll (bContext *C)
 
static int outliner_liboverride_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_liboverride_operation (wmOperatorType *ot)
 
void OUTLINER_OT_liboverride_troubleshoot_operation (wmOperatorType *ot)
 

Object Operation Utilities

enum  eOutliner_PropDataOps {
  OL_DOP_SELECT = 1 , OL_DOP_DESELECT , OL_DOP_HIDE , OL_DOP_UNHIDE ,
  OL_DOP_SELECT_LINKED
}
 
enum  eOutliner_PropConstraintOps { OL_CONSTRAINTOP_ENABLE = 1 , OL_CONSTRAINTOP_DISABLE , OL_CONSTRAINTOP_DELETE }
 
enum  eOutliner_PropModifierOps { OL_MODIFIER_OP_TOGVIS = 1 , OL_MODIFIER_OP_TOGREN , OL_MODIFIER_OP_DELETE }
 
static void pchan_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *UNUSED(arg))
 
static void bone_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *UNUSED(arg))
 
static void ebone_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *UNUSED(arg))
 
static void sequence_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *scene_ptr)
 
static void gpencil_layer_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *UNUSED(arg))
 
static void data_select_linked_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *C_v)
 
static void constraint_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *C_v)
 
static void modifier_fn (int event, TreeElement *te, TreeStoreElem *UNUSED(tselem), void *Carg)
 
static void outliner_do_data_operation (SpaceOutliner *space_outliner, int type, int event, void(*operation_fn)(int, TreeElement *, TreeStoreElem *, void *), void *arg)
 
static Baseoutliner_batch_delete_hierarchy (ReportList *reports, Main *bmain, ViewLayer *view_layer, Scene *scene, Base *base)
 
static void object_batch_delete_hierarchy_fn (bContext *C, ReportList *reports, Scene *scene, Object *ob)
 

Object Menu Operator

enum  {
  OL_OP_SELECT = 1 , OL_OP_DESELECT , OL_OP_SELECT_HIERARCHY , OL_OP_REMAP ,
  OL_OP_RENAME
}
 
static const EnumPropertyItem prop_object_op_types []
 
static int outliner_object_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_object_operation (wmOperatorType *ot)
 

ID-Data Menu Operator

enum  eOutlinerIdOpTypes {
  OUTLINER_IDOP_INVALID = 0 , OUTLINER_IDOP_UNLINK , OUTLINER_IDOP_LOCAL , OUTLINER_IDOP_SINGLE ,
  OUTLINER_IDOP_DELETE , OUTLINER_IDOP_REMAP , OUTLINER_IDOP_COPY , OUTLINER_IDOP_PASTE ,
  OUTLINER_IDOP_FAKE_ADD , OUTLINER_IDOP_FAKE_CLEAR , OUTLINER_IDOP_RENAME , OUTLINER_IDOP_SELECT_LINKED
}
 
static const EnumPropertyItem prop_id_op_types []
 
static bool outliner_id_operation_item_poll (bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), const int enum_value)
 
static const EnumPropertyItemoutliner_id_operation_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
 
static int outliner_id_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_id_operation (wmOperatorType *ot)
 

Library Menu Operator

enum  eOutlinerLibOpTypes { OL_LIB_INVALID = 0 , OL_LIB_DELETE , OL_LIB_RELOCATE , OL_LIB_RELOAD }
 
static const EnumPropertyItem outliner_lib_op_type_items []
 
static int outliner_lib_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_lib_operation (wmOperatorType *ot)
 

Animation Menu Operator

enum  eOutliner_AnimDataOps {
  OUTLINER_ANIMOP_INVALID = 0 , OUTLINER_ANIMOP_CLEAR_ADT , OUTLINER_ANIMOP_SET_ACT , OUTLINER_ANIMOP_CLEAR_ACT ,
  OUTLINER_ANIMOP_REFRESH_DRV , OUTLINER_ANIMOP_CLEAR_DRV
}
 
static const EnumPropertyItem prop_animdata_op_types []
 
static int outliner_animdata_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_animdata_operation (wmOperatorType *ot)
 

Delete Object/Collection Operator

using OutlinerDeleteFn = void(*)(bContext *C, ReportList *reports, Scene *scene, Object *ob)
 
using ObjectEditData = struct ObjectEditData { GSet *objects_set
 
bool is_liboverride_allowed
 
bool is_liboverride_hierarchy_root_allowed
 
static void outliner_do_object_delete (bContext *C, ReportList *reports, Scene *scene, GSet *objects_to_delete, OutlinerDeleteFn delete_fn)
 
static TreeTraversalAction outliner_find_objects_to_delete (TreeElement *te, void *customdata)
 
static int outliner_delete_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_delete (wmOperatorType *ot)
 

Constraint Menu Operator

static const EnumPropertyItem prop_constraint_op_types []
 
static int outliner_constraint_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_constraint_operation (wmOperatorType *ot)
 

Modifier Menu Operator

static const EnumPropertyItem prop_modifier_op_types []
 
static int outliner_modifier_operation_exec (bContext *C, wmOperator *op)
 
void OUTLINER_OT_modifier_operation (wmOperatorType *ot)
 

Typedef Documentation

◆ eOutlinerLibOpSelectionSet

◆ ObjectEditData

using ObjectEditData = struct ObjectEditData { GSet *objects_set

Definition at line 2382 of file outliner_tools.cc.

◆ OutlinerDeleteFn

using OutlinerDeleteFn = void (*)(bContext *C, ReportList *reports, Scene *scene, Object *ob)

Definition at line 2380 of file outliner_tools.cc.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OL_OP_SELECT 
OL_OP_DESELECT 
OL_OP_SELECT_HIERARCHY 
OL_OP_REMAP 
OL_OP_RENAME 

Definition at line 2252 of file outliner_tools.cc.

◆ eOutliner_AnimDataOps

Enumerator
OUTLINER_ANIMOP_INVALID 
OUTLINER_ANIMOP_CLEAR_ADT 
OUTLINER_ANIMOP_SET_ACT 
OUTLINER_ANIMOP_CLEAR_ACT 
OUTLINER_ANIMOP_REFRESH_DRV 
OUTLINER_ANIMOP_CLEAR_DRV 

Definition at line 3058 of file outliner_tools.cc.

◆ eOutliner_PropConstraintOps

Enumerator
OL_CONSTRAINTOP_ENABLE 
OL_CONSTRAINTOP_DISABLE 
OL_CONSTRAINTOP_DELETE 

Definition at line 1949 of file outliner_tools.cc.

◆ eOutliner_PropDataOps

Enumerator
OL_DOP_SELECT 
OL_DOP_DESELECT 
OL_DOP_HIDE 
OL_DOP_UNHIDE 
OL_DOP_SELECT_LINKED 

Definition at line 1941 of file outliner_tools.cc.

◆ eOutliner_PropModifierOps

Enumerator
OL_MODIFIER_OP_TOGVIS 
OL_MODIFIER_OP_TOGREN 
OL_MODIFIER_OP_DELETE 

Definition at line 1955 of file outliner_tools.cc.

◆ eOutliner_PropSceneOps

Enumerator
OL_SCENE_OP_DELETE 

Definition at line 617 of file outliner_tools.cc.

◆ eOutlinerIdOpTypes

Enumerator
OUTLINER_IDOP_INVALID 
OUTLINER_IDOP_UNLINK 
OUTLINER_IDOP_LOCAL 
OUTLINER_IDOP_SINGLE 
OUTLINER_IDOP_DELETE 
OUTLINER_IDOP_REMAP 
OUTLINER_IDOP_COPY 
OUTLINER_IDOP_PASTE 
OUTLINER_IDOP_FAKE_ADD 
OUTLINER_IDOP_FAKE_CLEAR 
OUTLINER_IDOP_RENAME 
OUTLINER_IDOP_SELECT_LINKED 

Definition at line 2538 of file outliner_tools.cc.

◆ eOutlinerLibOpSelectionSet

Enumerator
OUTLINER_LIB_SELECTIONSET_SELECTED 
OUTLINER_LIB_LIB_SELECTIONSET_CONTENT 
OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT 

Definition at line 518 of file outliner_tools.cc.

◆ eOutlinerLibOpTypes

Enumerator
OL_LIB_INVALID 
OL_LIB_DELETE 
OL_LIB_RELOCATE 
OL_LIB_RELOAD 

Definition at line 2843 of file outliner_tools.cc.

◆ eOutlinerLibOverrideOpTypes

Enumerator
OUTLINER_LIBOVERRIDE_OP_INVALID 
OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY 
OUTLINER_LIBOVERRIDE_OP_RESET 
OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE 
OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY 
OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE 
OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY 

Definition at line 1696 of file outliner_tools.cc.

Function Documentation

◆ actionset_id_fn()

static void actionset_id_fn ( TreeElement UNUSEDte,
TreeStoreElem tselem,
TreeStoreElem tsep,
ID actId 
)
static

◆ bone_fn()

static void bone_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void UNUSEDarg 
)
static

◆ clear_animdata_fn()

static void clear_animdata_fn ( int   UNUSEDevent,
TreeElement UNUSEDte,
TreeStoreElem tselem,
void UNUSEDarg 
)
static

◆ cleardrivers_animdata_fn()

static void cleardrivers_animdata_fn ( int   UNUSEDevent,
TreeElement UNUSEDte,
TreeStoreElem tselem,
void UNUSEDarg 
)
static

◆ constraint_fn()

static void constraint_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void C_v 
)
static

◆ data_select_linked_fn()

static void data_select_linked_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void C_v 
)
static

◆ do_outliner_operation_event()

static int do_outliner_operation_event ( bContext C,
ReportList reports,
ARegion region,
SpaceOutliner space_outliner,
TreeElement te 
)
static

◆ ebone_fn()

static void ebone_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void UNUSEDarg 
)
static

◆ get_element_operation_type()

static void get_element_operation_type ( TreeElement te,
int *  scenelevel,
int *  objectlevel,
int *  idlevel,
int *  datalevel 
)
static

◆ get_target_element()

static TreeElement* get_target_element ( SpaceOutliner space_outliner)
static

◆ gpencil_layer_fn()

static void gpencil_layer_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void UNUSEDarg 
)
static

◆ id_fake_user_clear_fn()

static void id_fake_user_clear_fn ( bContext UNUSEDC,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

Definition at line 1505 of file outliner_tools.cc.

References TreeStoreElem::id, and id_fake_user_clear().

Referenced by outliner_id_operation_exec().

◆ id_fake_user_set_fn()

static void id_fake_user_set_fn ( bContext UNUSEDC,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

Definition at line 1492 of file outliner_tools.cc.

References TreeStoreElem::id, and id_fake_user_set().

Referenced by outliner_id_operation_exec().

◆ id_local_fn()

static void id_local_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ id_override_library_clear_single_fn()

static void id_override_library_clear_single_fn ( bContext C,
ReportList reports,
Scene scene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ id_override_library_create_hierarchy()

static void id_override_library_create_hierarchy ( Main bmain,
Scene scene,
ViewLayer view_layer,
OutlinerLibOverrideData data,
ID id_hierarchy_root_reference,
Vector< OutlinerLiboverrideDataIDRoot > &  data_idroots,
bool r_aggregated_success 
)
static

◆ id_override_library_create_hierarchy_pre_process_fn()

static void id_override_library_create_hierarchy_pre_process_fn ( bContext C,
ReportList reports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem tsep,
TreeStoreElem tselem,
void user_data 
)
static

◆ id_override_library_create_hierarchy_process()

static void id_override_library_create_hierarchy_process ( bContext C,
ReportList reports,
OutlinerLibOverrideData data 
)
static

◆ id_override_library_delete_hierarchy_fn()

static void id_override_library_delete_hierarchy_fn ( bContext UNUSEDC,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void user_data 
)
static

◆ id_override_library_delete_hierarchy_process()

static void id_override_library_delete_hierarchy_process ( bContext C,
ReportList UNUSEDreports,
OutlinerLibOverrideData data 
)
static

◆ id_override_library_reset_fn()

static void id_override_library_reset_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void user_data 
)
static

◆ id_override_library_resync_fn()

static void id_override_library_resync_fn ( bContext UNUSEDC,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void user_data 
)
static

◆ id_override_library_resync_hierarchy_process()

static void id_override_library_resync_hierarchy_process ( bContext C,
ReportList reports,
OutlinerLibOverrideData data 
)
static

◆ id_select_linked_fn()

static void id_select_linked_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

Definition at line 1518 of file outliner_tools.cc.

References C, ED_object_select_linked_by_id(), and TreeStoreElem::id.

Referenced by outliner_id_operation_exec().

◆ merged_element_search_exec_fn()

static void merged_element_search_exec_fn ( struct bContext C,
void UNUSEDarg1,
void element 
)
static

◆ merged_element_search_fn_recursive()

static void merged_element_search_fn_recursive ( const ListBase tree,
short  tselem_type,
short  type,
const char *  str,
uiSearchItems items 
)
static

◆ merged_element_search_menu()

static uiBlock* merged_element_search_menu ( bContext C,
ARegion region,
void data 
)
static

◆ merged_element_search_menu_invoke()

void merged_element_search_menu_invoke ( bContext C,
TreeElement parent_te,
TreeElement activate_te 
)

◆ merged_element_search_update_fn()

static void merged_element_search_update_fn ( const bContext UNUSEDC,
void data,
const char *  str,
uiSearchItems items,
const bool   UNUSEDis_first 
)
static

◆ modifier_fn()

static void modifier_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void Carg 
)
static

◆ object_batch_delete_hierarchy_fn()

static void object_batch_delete_hierarchy_fn ( bContext C,
ReportList reports,
Scene scene,
Object ob 
)
static

◆ object_deselect_fn()

static void object_deselect_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ object_select_fn()

static void object_select_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem UNUSEDtsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ object_select_hierarchy_fn()

static void object_select_hierarchy_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem UNUSEDtsep,
TreeStoreElem UNUSEDtselem,
void UNUSEDuser_data 
)
static

◆ outliner_action_set_exec()

static int outliner_action_set_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_animdata_operation_exec()

static int outliner_animdata_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_batch_delete_hierarchy()

static Base* outliner_batch_delete_hierarchy ( ReportList reports,
Main bmain,
ViewLayer view_layer,
Scene scene,
Base base 
)
static

◆ outliner_constraint_operation_exec()

static int outliner_constraint_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_data_op_sets_enum_item_fn()

static const EnumPropertyItem* outliner_data_op_sets_enum_item_fn ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
bool UNUSEDr_free 
)
static

◆ outliner_data_operation_exec()

static int outliner_data_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_delete_exec()

static int outliner_delete_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_do_data_operation()

static void outliner_do_data_operation ( SpaceOutliner space_outliner,
int  type,
int  event,
void(*)(int, TreeElement *, TreeStoreElem *, void *)  operation_fn,
void arg 
)
static

◆ outliner_do_id_set_operation()

static void outliner_do_id_set_operation ( SpaceOutliner space_outliner,
int  type,
ID newid,
void(*)(TreeElement *, TreeStoreElem *, TreeStoreElem *, ID *)  operation_fn 
)
static

◆ outliner_do_libdata_operation()

static void outliner_do_libdata_operation ( bContext C,
ReportList reports,
Scene scene,
SpaceOutliner space_outliner,
outliner_operation_fn  operation_fn,
void user_data 
)
static

◆ outliner_do_libdata_operation_selection_set() [1/2]

static void outliner_do_libdata_operation_selection_set ( bContext C,
ReportList reports,
Scene scene,
SpaceOutliner space_outliner,
const ListBase subtree,
const bool  has_parent_selected,
outliner_operation_fn  operation_fn,
eOutlinerLibOpSelectionSet  selection_set,
void user_data 
)
static

◆ outliner_do_libdata_operation_selection_set() [2/2]

static void outliner_do_libdata_operation_selection_set ( bContext C,
ReportList reports,
Scene scene,
SpaceOutliner space_outliner,
outliner_operation_fn  operation_fn,
eOutlinerLibOpSelectionSet  selection_set,
void user_data 
)
static

◆ outliner_do_object_delete()

static void outliner_do_object_delete ( bContext C,
ReportList reports,
Scene scene,
GSet objects_to_delete,
OutlinerDeleteFn  delete_fn 
)
static

Definition at line 2388 of file outliner_tools.cc.

References BLI_gsetIterator_getKey(), C, GSET_ITER, and scene.

Referenced by outliner_delete_exec().

◆ outliner_do_object_operation()

void outliner_do_object_operation ( bContext C,
ReportList reports,
Scene scene_act,
SpaceOutliner space_outliner,
ListBase lb,
outliner_operation_fn  operation_fn 
)

Definition at line 1624 of file outliner_tools.cc.

References C, and outliner_do_object_operation_ex().

Referenced by outliner_object_operation_exec().

◆ outliner_do_object_operation_ex()

void outliner_do_object_operation_ex ( struct bContext C,
struct ReportList reports,
struct Scene scene,
struct SpaceOutliner space_outliner,
struct ListBase lb,
outliner_operation_fn  operation_fn,
void user_data,
bool  recurse_selected 
)

◆ outliner_do_scene_operation()

static bool outliner_do_scene_operation ( bContext C,
SpaceOutliner space_outliner,
eOutliner_PropSceneOps  event,
bool(*)(bContext *, eOutliner_PropSceneOps, TreeElement *, TreeStoreElem *)  operation_fn 
)
static

◆ outliner_find_objects_to_delete()

static TreeTraversalAction outliner_find_objects_to_delete ( TreeElement te,
void customdata 
)
static

◆ outliner_id_operation_exec()

static int outliner_id_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_id_operation_item_poll()

static bool outliner_id_operation_item_poll ( bContext C,
PointerRNA UNUSEDptr,
PropertyRNA UNUSEDprop,
const int  enum_value 
)
static

◆ outliner_id_operation_itemf()

static const EnumPropertyItem* outliner_id_operation_itemf ( bContext C,
PointerRNA ptr,
PropertyRNA prop,
bool r_free 
)
static

◆ outliner_lib_operation_exec()

static int outliner_lib_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_liboverride_operation_exec()

static int outliner_liboverride_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_liboverride_operation_poll()

static bool outliner_liboverride_operation_poll ( bContext C)
static

◆ outliner_modifier_operation_exec()

static int outliner_modifier_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_object_delete_fn()

static void outliner_object_delete_fn ( bContext C,
ReportList reports,
Scene scene,
Object ob 
)
static

◆ outliner_object_operation_exec()

static int outliner_object_operation_exec ( bContext C,
wmOperator op 
)
static

◆ outliner_operation()

static int outliner_operation ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ outliner_operation_tree_element_poll()

static bool outliner_operation_tree_element_poll ( bContext C)
static

◆ outliner_operator_menu()

static int outliner_operator_menu ( bContext C,
const char *  opname 
)
static

◆ OUTLINER_OT_action_set()

void OUTLINER_OT_action_set ( wmOperatorType ot)

◆ OUTLINER_OT_animdata_operation()

void OUTLINER_OT_animdata_operation ( wmOperatorType ot)

◆ OUTLINER_OT_constraint_operation()

void OUTLINER_OT_constraint_operation ( wmOperatorType ot)

◆ OUTLINER_OT_data_operation()

void OUTLINER_OT_data_operation ( wmOperatorType ot)

◆ OUTLINER_OT_delete()

void OUTLINER_OT_delete ( wmOperatorType ot)

◆ OUTLINER_OT_id_operation()

void OUTLINER_OT_id_operation ( wmOperatorType ot)

◆ OUTLINER_OT_lib_operation()

void OUTLINER_OT_lib_operation ( wmOperatorType ot)

◆ OUTLINER_OT_liboverride_operation()

void OUTLINER_OT_liboverride_operation ( wmOperatorType ot)

◆ OUTLINER_OT_liboverride_troubleshoot_operation()

void OUTLINER_OT_liboverride_troubleshoot_operation ( wmOperatorType ot)

◆ OUTLINER_OT_modifier_operation()

void OUTLINER_OT_modifier_operation ( wmOperatorType ot)

◆ OUTLINER_OT_object_operation()

void OUTLINER_OT_object_operation ( wmOperatorType ot)

◆ OUTLINER_OT_operation()

void OUTLINER_OT_operation ( wmOperatorType ot)

◆ OUTLINER_OT_scene_operation()

void OUTLINER_OT_scene_operation ( wmOperatorType ot)

◆ outliner_scene_operation_exec()

static int outliner_scene_operation_exec ( bContext C,
wmOperator op 
)
static

◆ pchan_fn()

static void pchan_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void UNUSEDarg 
)
static

◆ refreshdrivers_animdata_fn()

static void refreshdrivers_animdata_fn ( int   UNUSEDevent,
TreeElement UNUSEDte,
TreeStoreElem tselem,
void UNUSEDarg 
)
static

◆ scene_fn()

static bool scene_fn ( bContext C,
eOutliner_PropSceneOps  event,
TreeElement UNUSEDte,
TreeStoreElem tselem 
)
static

◆ sequence_fn()

static void sequence_fn ( int  event,
TreeElement te,
TreeStoreElem UNUSEDtselem,
void scene_ptr 
)
static

◆ singleuser_action_fn()

static void singleuser_action_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ singleuser_world_fn()

static void singleuser_world_fn ( bContext C,
ReportList UNUSEDreports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_action_fn()

static void unlink_action_fn ( bContext C,
ReportList reports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_collection_fn()

static void unlink_collection_fn ( bContext C,
ReportList reports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_material_fn()

static void unlink_material_fn ( bContext UNUSEDC,
ReportList reports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_object_fn()

static void unlink_object_fn ( bContext C,
ReportList reports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_texture_fn()

static void unlink_texture_fn ( bContext UNUSEDC,
ReportList reports,
Scene UNUSEDscene,
TreeElement te,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlink_world_fn()

static void unlink_world_fn ( bContext UNUSEDC,
ReportList reports,
Scene UNUSEDscene,
TreeElement UNUSEDte,
TreeStoreElem tsep,
TreeStoreElem tselem,
void UNUSEDuser_data 
)
static

◆ unlinkact_animdata_fn()

static void unlinkact_animdata_fn ( int   UNUSEDevent,
TreeElement UNUSEDte,
TreeStoreElem tselem,
void UNUSEDarg 
)
static

Variable Documentation

◆ is_liboverride_allowed

bool is_liboverride_allowed

◆ is_liboverride_hierarchy_root_allowed

bool is_liboverride_hierarchy_root_allowed

Definition at line 2385 of file outliner_tools.cc.

◆ LOG

CLG_LogRef LOG = {"ed.outliner.tools"}
static

◆ outliner_lib_op_type_items

const EnumPropertyItem outliner_lib_op_type_items[]
static
Initial value:
= {
"DELETE",
ICON_X,
"Delete",
"Delete this library and all its item.\n"
"Warning: No undo"},
"RELOCATE",
0,
"Relocate",
"Select a new path for this library, and reload all its data"},
{OL_LIB_RELOAD, "RELOAD", ICON_FILE_REFRESH, "Reload", "Reload all data from this library"},
{0, nullptr, 0, nullptr, nullptr},
}
@ OL_LIB_RELOAD
@ OL_LIB_DELETE
@ OL_LIB_RELOCATE

Definition at line 2851 of file outliner_tools.cc.

Referenced by OUTLINER_OT_lib_operation().

◆ prop_animdata_op_types

const EnumPropertyItem prop_animdata_op_types[]
static
Initial value:
= {
"CLEAR_ANIMDATA",
0,
"Clear Animation Data",
"Remove this animation data container"},
{OUTLINER_ANIMOP_SET_ACT, "SET_ACT", 0, "Set Action", ""},
{OUTLINER_ANIMOP_CLEAR_ACT, "CLEAR_ACT", 0, "Unlink Action", ""},
{OUTLINER_ANIMOP_REFRESH_DRV, "REFRESH_DRIVERS", 0, "Refresh Drivers", ""},
{OUTLINER_ANIMOP_CLEAR_DRV, "CLEAR_DRIVERS", 0, "Clear Drivers", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ OUTLINER_ANIMOP_CLEAR_ADT
@ OUTLINER_ANIMOP_CLEAR_DRV
@ OUTLINER_ANIMOP_REFRESH_DRV
@ OUTLINER_ANIMOP_CLEAR_ACT
@ OUTLINER_ANIMOP_SET_ACT

Definition at line 3070 of file outliner_tools.cc.

Referenced by OUTLINER_OT_animdata_operation().

◆ prop_constraint_op_types

const EnumPropertyItem prop_constraint_op_types[]
static
Initial value:
= {
{OL_CONSTRAINTOP_ENABLE, "ENABLE", ICON_HIDE_OFF, "Enable", ""},
{OL_CONSTRAINTOP_DISABLE, "DISABLE", ICON_HIDE_ON, "Disable", ""},
{OL_CONSTRAINTOP_DELETE, "DELETE", ICON_X, "Delete", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ OL_CONSTRAINTOP_DISABLE
@ OL_CONSTRAINTOP_ENABLE
@ OL_CONSTRAINTOP_DELETE

Definition at line 3171 of file outliner_tools.cc.

Referenced by OUTLINER_OT_constraint_operation().

◆ prop_id_op_types

const EnumPropertyItem prop_id_op_types[]
static
Initial value:
= {
{OUTLINER_IDOP_UNLINK, "UNLINK", 0, "Unlink", ""},
{OUTLINER_IDOP_LOCAL, "LOCAL", 0, "Make Local", ""},
{OUTLINER_IDOP_SINGLE, "SINGLE", 0, "Make Single User", ""},
{OUTLINER_IDOP_DELETE, "DELETE", ICON_X, "Delete", ""},
"REMAP",
0,
"Remap Users",
"Make all users of selected data-blocks to use instead current (clicked) one"},
{OUTLINER_IDOP_COPY, "COPY", ICON_COPYDOWN, "Copy", ""},
{OUTLINER_IDOP_PASTE, "PASTE", ICON_PASTEDOWN, "Paste", ""},
"ADD_FAKE",
0,
"Add Fake User",
"Ensure data-block gets saved even if it isn't in use (e.g. for motion and material "
"libraries)"},
{OUTLINER_IDOP_FAKE_CLEAR, "CLEAR_FAKE", 0, "Clear Fake User", ""},
{OUTLINER_IDOP_RENAME, "RENAME", 0, "Rename", ""},
{OUTLINER_IDOP_SELECT_LINKED, "SELECT_LINKED", 0, "Select Linked", ""},
{0, nullptr, 0, nullptr, nullptr},
}
#define RNA_ENUM_ITEM_SEPR
Definition: RNA_types.h:483
@ OUTLINER_IDOP_SINGLE
@ OUTLINER_IDOP_UNLINK
@ OUTLINER_IDOP_FAKE_ADD
@ OUTLINER_IDOP_SELECT_LINKED
@ OUTLINER_IDOP_REMAP
@ OUTLINER_IDOP_FAKE_CLEAR
@ OUTLINER_IDOP_COPY
@ OUTLINER_IDOP_DELETE
@ OUTLINER_IDOP_PASTE
@ OUTLINER_IDOP_LOCAL
@ OUTLINER_IDOP_RENAME

Definition at line 2558 of file outliner_tools.cc.

Referenced by outliner_id_operation_itemf(), and OUTLINER_OT_id_operation().

◆ prop_lib_op_selection_set

const EnumPropertyItem prop_lib_op_selection_set[]
static
Initial value:
= {
"SELECTED",
0,
"Selected",
"Apply the operation over selected data-blocks only"},
"CONTENT",
0,
"Content",
"Apply the operation over content of the selected items only (the data-blocks in their "
"sub-tree)"},
"SELECTED_AND_CONTENT",
0,
"Selected & Content",
"Apply the operation over selected data-blocks and all their dependencies"},
{0, nullptr, 0, nullptr, nullptr},
}
@ OUTLINER_LIB_SELECTIONSET_SELECTED
@ OUTLINER_LIB_LIB_SELECTIONSET_SELECTED_AND_CONTENT
@ OUTLINER_LIB_LIB_SELECTIONSET_CONTENT

Definition at line 527 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_operation(), and OUTLINER_OT_liboverride_troubleshoot_operation().

◆ prop_liboverride_op_types

const EnumPropertyItem prop_liboverride_op_types[]
static
Initial value:
= {
"OVERRIDE_LIBRARY_CREATE_HIERARCHY",
0,
"Make",
"Create a local override of the selected linked data-blocks, and their hierarchy of "
"dependencies"},
"OVERRIDE_LIBRARY_RESET",
0,
"Reset",
"Reset the selected local overrides to their linked references values"},
"OVERRIDE_LIBRARY_CLEAR_SINGLE",
0,
"Clear",
"Delete the selected local overrides and relink their usages to the linked data-blocks if "
"possible, else reset them and mark them as non editable"},
{0, nullptr, 0, nullptr, nullptr},
}
@ OUTLINER_LIBOVERRIDE_OP_RESET
@ OUTLINER_LIBOVERRIDE_OP_CREATE_HIERARCHY
@ OUTLINER_LIBOVERRIDE_OP_CLEAR_SINGLE

Definition at line 1708 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_operation().

◆ prop_liboverride_troubleshoot_op_types

const EnumPropertyItem prop_liboverride_troubleshoot_op_types[]
static
Initial value:
= {
"OVERRIDE_LIBRARY_RESYNC_HIERARCHY",
0,
"Resync",
"Rebuild the selected local overrides from their linked references, as well as their "
"hierarchies of dependencies"},
"OVERRIDE_LIBRARY_RESYNC_HIERARCHY_ENFORCE",
0,
"Resync Enforce",
"Rebuild the selected local overrides from their linked references, as well as their "
"hierarchies of dependencies, enforcing these hierarchies to match the linked data (i.e. "
"ignoring existing overrides on data-blocks pointer properties)"},
"OVERRIDE_LIBRARY_DELETE_HIERARCHY",
0,
"Delete",
"Delete the selected local overrides (including their hierarchies of override dependencies) "
"and relink their usages to the linked data-blocks"},
{0, nullptr, 0, nullptr, nullptr},
}
@ OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY
@ OUTLINER_LIBOVERRIDE_OP_DELETE_HIERARCHY
@ OUTLINER_LIBOVERRIDE_OP_RESYNC_HIERARCHY_ENFORCE

Definition at line 1729 of file outliner_tools.cc.

Referenced by OUTLINER_OT_liboverride_troubleshoot_operation().

◆ prop_modifier_op_types

const EnumPropertyItem prop_modifier_op_types[]
static
Initial value:
= {
{OL_MODIFIER_OP_TOGVIS, "TOGVIS", ICON_RESTRICT_VIEW_OFF, "Toggle Viewport Use", ""},
{OL_MODIFIER_OP_TOGREN, "TOGREN", ICON_RESTRICT_RENDER_OFF, "Toggle Render Use", ""},
{OL_MODIFIER_OP_DELETE, "DELETE", ICON_X, "Delete", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ OL_MODIFIER_OP_TOGVIS
@ OL_MODIFIER_OP_TOGREN
@ OL_MODIFIER_OP_DELETE

Definition at line 3217 of file outliner_tools.cc.

Referenced by OUTLINER_OT_modifier_operation().

◆ prop_object_op_types

const EnumPropertyItem prop_object_op_types[]
static
Initial value:
= {
{OL_OP_SELECT, "SELECT", ICON_RESTRICT_SELECT_OFF, "Select", ""},
{OL_OP_DESELECT, "DESELECT", 0, "Deselect", ""},
{OL_OP_SELECT_HIERARCHY, "SELECT_HIERARCHY", 0, "Select Hierarchy", ""},
"REMAP",
0,
"Remap Users",
"Make all users of selected data-blocks to use instead a new chosen one"},
{OL_OP_RENAME, "RENAME", 0, "Rename", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ OL_OP_REMAP
@ OL_OP_RENAME
@ OL_OP_SELECT_HIERARCHY
@ OL_OP_SELECT
@ OL_OP_DESELECT

Definition at line 2260 of file outliner_tools.cc.

Referenced by OUTLINER_OT_object_operation().

◆ prop_scene_op_types

const EnumPropertyItem prop_scene_op_types[]
static
Initial value:
= {
{OL_SCENE_OP_DELETE, "DELETE", ICON_X, "Delete", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ OL_SCENE_OP_DELETE

Definition at line 621 of file outliner_tools.cc.

Referenced by OUTLINER_OT_scene_operation().