Blender
V3.3
|
#include <cstring>
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "DNA_ID.h"
#include "DNA_collection_types.h"
#include "DNA_object_types.h"
#include "BKE_collection.h"
#include "BKE_context.h"
#include "BKE_idtype.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "outliner_intern.hh"
Go to the source code of this file.
Classes | |
struct | CollectionNewData |
struct | CollectionEditData |
struct | CollectionObjectsSelectData |
struct | CollectionDuplicateData |
struct | OutlinerHideEditData |
Definition at line 1281 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_VIEWPORT.
Referenced by OUTLINER_OT_collection_disable().
Definition at line 1291 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_RENDER.
Referenced by OUTLINER_OT_collection_disable_render().
|
static |
Definition at line 571 of file outliner_collections.cc.
References BKE_collection_duplicate(), BKE_idtype_get_info_from_id(), BKE_report(), BLI_assert, C, COLLECTION_IS_MASTER, CTX_data_main(), CTX_data_scene(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), Collection::flag, ID::flag, GS, Collection::id, Scene::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_SCE, wmOperator::idname, LIB_EMBEDDED_DATA, LIB_ID_DUPLICATE_IS_ROOT_ID, Scene::master_collection, ID::name, NC_SCENE, ND_LAYER, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_active_collection(), outliner_collection_from_tree_element(), IDTypeInfo::owner_get, TreeElement::parent, wmOperator::reports, RPT_ERROR, RPT_WARNING, scene, USER_DUP_OBJECT, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_duplicate(), and OUTLINER_OT_collection_duplicate_linked().
Definition at line 162 of file outliner_collections.cc.
References C, CTX_data_scene(), ED_outliner_collections_editor_poll(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, and scene.
Referenced by OUTLINER_OT_collection_hierarchy_delete(), OUTLINER_OT_collection_instance(), OUTLINER_OT_collection_link(), and OUTLINER_OT_collection_new().
Definition at line 1276 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_VIEWPORT.
Referenced by OUTLINER_OT_collection_enable().
Definition at line 1286 of file outliner_collections.cc.
References C, collection_flag_poll(), and COLLECTION_HIDE_RENDER.
Referenced by OUTLINER_OT_collection_enable_render().
|
static |
Definition at line 287 of file outliner_collections.cc.
References BLI_gset_add(), COLLECTION_IS_MASTER, data, Collection::flag, ID_IS_OVERRIDE_LIBRARY_HIERARCHY_ROOT, ID_IS_OVERRIDE_LIBRARY_REAL, outliner_collection_from_tree_element(), TRAVERSE_CONTINUE, and TRAVERSE_SKIP_CHILDS.
Referenced by collection_flag_exec(), collection_instance_exec(), collection_link_exec(), and outliner_collection_delete().
|
static |
Definition at line 185 of file outliner_collections.cc.
References CollectionNewData::collection, data, outliner_collection_from_tree_element(), TRAVERSE_BREAK, TRAVERSE_CONTINUE, and TRAVERSE_SKIP_CHILDS.
Referenced by collection_new_exec().
|
static |
Definition at line 1296 of file outliner_collections.cc.
References BKE_id_is_editable(), BKE_layer_collection_sync(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, clear(), LayerCollection::collection, collection_find_data_to_edit(), COLLECTION_HIDE_RENDER, COLLECTION_HIDE_VIEWPORT, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), DEG_relations_tag_update(), Collection::flag, LayerCollection::flag, GSET_ITER, Collection::id, Scene::id, ID_RECALC_BASE_FLAGS, wmOperator::idname, layer_collection_find_data_to_edit(), LAYER_COLLECTION_HIDE, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_tree_traverse(), SpaceOutliner::outlinevis, scene, SO_VIEW_LAYER, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_disable(), OUTLINER_OT_collection_disable_render(), OUTLINER_OT_collection_enable(), and OUTLINER_OT_collection_enable_render().
Definition at line 1250 of file outliner_collections.cc.
References C, clear(), ED_outliner_collections_editor_poll(), Collection::flag, outliner_active_collection(), and outliner_collection_from_tree_element().
Referenced by collection_disable_poll(), collection_disable_render_poll(), collection_enable_poll(), and collection_enable_render_poll().
Definition at line 1135 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HIDE.
Referenced by OUTLINER_OT_collection_hide().
|
static |
Definition at line 394 of file outliner_collections.cc.
References blender::compositor::active, BASACT, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_message_bus(), DEG_id_tag_update(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_COPY_ON_WRITE, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, outliner_collection_delete(), wmOperator::reports, scene, WM_main_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by OUTLINER_OT_collection_hierarchy_delete().
Definition at line 1140 of file outliner_collections.cc.
References C, ED_outliner_collections_editor_poll(), and outliner_active_layer_collection().
Referenced by OUTLINER_OT_collection_hide_inside(), and OUTLINER_OT_collection_show_inside().
|
static |
Definition at line 741 of file outliner_collections.cc.
References BKE_collection_cycle_find(), BKE_layer_collection_activate_parent(), BKE_layer_collection_get_active(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, LayerCollection::collection, collection_find_data_to_edit(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), Scene::cursor, data, DEG_relations_tag_update(), ED_object_add_type(), GSET_ITER, Collection::id, id_lib_extern(), id_us_plus(), Object::instance_collection, View3DCursor::location, ID::name, NC_SCENE, ND_LAYER, OB_DUPLICOLLECTION, OB_EMPTY, OPERATOR_FINISHED, outliner_tree_traverse(), scene, Object::transflag, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_instance().
|
static |
Definition at line 1050 of file outliner_collections.cc.
References BKE_layer_collection_isolate_global(), BKE_layer_collection_sync(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), GSET_ITER, Scene::id, ID_RECALC_BASE_FLAGS, layer_collection_find_data_to_edit(), NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_collection_isolate_flag(), outliner_tree_traverse(), wmOperator::ptr, ptr, RNA_boolean_get(), RNA_pointer_create(), RNA_property_boolean_get(), RNA_struct_type_find_property(), scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by collection_isolate_invoke(), and OUTLINER_OT_collection_isolate().
|
static |
Definition at line 1100 of file outliner_collections.cc.
References C, collection_isolate_exec(), KM_SHIFT, wmEvent::modifier, wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), and RNA_struct_find_property().
Referenced by OUTLINER_OT_collection_isolate().
|
static |
Definition at line 674 of file outliner_collections.cc.
References BKE_collection_child_add(), BKE_report(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, LayerCollection::collection, collection_find_data_to_edit(), COLLECTION_IS_MASTER, CTX_data_layer_collection(), CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), DEG_relations_tag_update(), Collection::flag, GSET_ITER, Collection::id, id_fake_user_clear(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_tree_traverse(), wmOperator::reports, RPT_ERROR, scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_link().
|
static |
Definition at line 203 of file outliner_collections.cc.
References BKE_collection_add(), BKE_report(), C, collection_find_selected_to_add(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), DEG_relations_tag_update(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_RECALC_COPY_ON_WRITE, Scene::master_collection, NC_SCENE, ND_LAYER, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_build_tree(), outliner_cleanup_tree(), outliner_tree_traverse(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_new().
|
static |
Definition at line 478 of file outliner_collections.cc.
References BKE_layer_collection_objects_select(), C, CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ED_outliner_select_sync_from_object_tag(), Scene::id, ID_RECALC_SELECT, wmOperator::idname, NC_SCENE, ND_OB_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, outliner_active_layer_collection(), scene, STREQ, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_objects_deselect(), and OUTLINER_OT_collection_objects_select().
Definition at line 1130 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HIDE.
Referenced by OUTLINER_OT_collection_show().
|
static |
Definition at line 910 of file outliner_collections.cc.
References BKE_layer_collection_set_flag(), BKE_layer_collection_sync(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, clear(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_relations_tag_update(), GSET_ITER, wmOperator::idname, LAYER_COLLECTION_EXCLUDE, layer_collection_find_data_to_edit(), LAYER_COLLECTION_HOLDOUT, LAYER_COLLECTION_INDIRECT_ONLY, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, outliner_tree_traverse(), scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_exclude_clear(), OUTLINER_OT_collection_exclude_set(), OUTLINER_OT_collection_holdout_clear(), OUTLINER_OT_collection_holdout_set(), OUTLINER_OT_collection_indirect_only_clear(), and OUTLINER_OT_collection_indirect_only_set().
|
static |
Definition at line 1148 of file outliner_collections.cc.
References BKE_layer_collection_set_visible(), BKE_layer_collection_sync(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), GSET_ITER, Scene::id, ID_RECALC_BASE_FLAGS, wmOperator::idname, is_inside(), layer_collection_find_data_to_edit(), NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_tree_traverse(), scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_collection_hide(), OUTLINER_OT_collection_hide_inside(), OUTLINER_OT_collection_show(), and OUTLINER_OT_collection_show_inside().
Definition at line 885 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_EXCLUDE.
Referenced by OUTLINER_OT_collection_exclude_clear().
Definition at line 880 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_EXCLUDE.
Referenced by OUTLINER_OT_collection_exclude_set().
Definition at line 895 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HOLDOUT.
Referenced by OUTLINER_OT_collection_holdout_clear().
Definition at line 890 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_HOLDOUT.
Referenced by OUTLINER_OT_collection_holdout_set().
Definition at line 905 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_INDIRECT_ONLY.
Referenced by OUTLINER_OT_collection_indirect_only_clear().
Definition at line 900 of file outliner_collections.cc.
References C, collections_view_layer_poll(), and LAYER_COLLECTION_INDIRECT_ONLY.
Referenced by OUTLINER_OT_collection_indirect_only_set().
Definition at line 839 of file outliner_collections.cc.
References BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, clear(), CTX_data_scene(), CTX_wm_space_outliner(), data, LayerCollection::flag, GSET_ITER, layer_collection_find_data_to_edit(), outliner_tree_traverse(), SpaceOutliner::outlinevis, result, scene, SO_VIEW_LAYER, SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_hide_poll(), collection_show_poll(), collections_exclude_clear_poll(), collections_exclude_set_poll(), collections_holdout_clear_poll(), collections_holdout_set_poll(), collections_indirect_only_clear_poll(), and collections_indirect_only_set_poll().
Definition at line 149 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), ELEM, SpaceOutliner::outlinevis, SO_LIBRARIES, SO_SCENES, and SO_VIEW_LAYER.
Referenced by collection_edit_in_active_scene_poll(), collection_flag_poll(), collection_inside_poll(), move_to_collection_poll(), object_hide_poll(), OUTLINER_OT_collection_color_tag_set(), OUTLINER_OT_collection_duplicate(), OUTLINER_OT_collection_duplicate_linked(), OUTLINER_OT_collection_isolate(), OUTLINER_OT_collection_objects_deselect(), and OUTLINER_OT_collection_objects_select().
Definition at line 125 of file outliner_collections.cc.
References BLI_addtail(), BLI_freelistN(), BLI_genericNodeN(), C, CTX_wm_space_outliner(), data, LISTBASE_FOREACH, outliner_find_selected_objects(), outliner_tree_traverse(), SpaceOutliner::tree, TREESTORE, and TSE_SELECTED.
|
static |
Definition at line 815 of file outliner_collections.cc.
References BLI_gset_add(), LayerCollection::collection, COLLECTION_IS_MASTER, data, TreeElement::directdata, Collection::flag, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, and TreeStoreElem::type.
Referenced by collection_flag_exec(), collection_isolate_exec(), collection_view_layer_exec(), collection_visibility_exec(), and collections_view_layer_poll().
|
static |
Definition at line 556 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), data, outliner_find_first_selected_collection(), outliner_tree_traverse(), SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_duplicate_exec(), and collection_flag_poll().
|
static |
Definition at line 463 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), data, outliner_find_first_selected_layer_collection(), outliner_tree_traverse(), SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_inside_poll(), and collection_objects_select_exec().
void outliner_collection_delete | ( | bContext * | C, |
Main * | bmain, | ||
Scene * | scene, | ||
ReportList * | reports, | ||
bool | do_hierarchy | ||
) |
Definition at line 321 of file outliner_collections.cc.
References BKE_collection_delete(), BKE_idtype_get_info_from_id(), BKE_reportf(), BLI_assert, BLI_findindex(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, collection_find_data_to_edit(), COLLECTION_IS_MASTER, Main::collections, CTX_wm_space_outliner(), data, Collection::flag, ID::flag, GS, GSET_ITER, Collection::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_SCE, LIB_EMBEDDED_DATA, LIB_TAG_INDIRECT, LISTBASE_FOREACH, ID::name, NULL, outliner_tree_traverse(), IDTypeInfo::owner_get, Collection::parents, RPT_WARNING, scene, ID::tag, SpaceOutliner::tree, and TSE_SELECTED.
Referenced by collection_hierarchy_delete_exec(), and outliner_delete_exec().
Collection* outliner_collection_from_tree_element | ( | const TreeElement * | te | ) |
Definition at line 66 of file outliner_collections.cc.
References LayerCollection::collection, TreeElement::directdata, ELEM, TreeStoreElem::id, ID_GR, TreeElement::idcode, Scene::master_collection, scene, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_drop_init(), collection_drop_invoke(), collection_duplicate_exec(), collection_find_data_to_edit(), collection_find_selected_to_add(), collection_flag_poll(), do_item_rename(), outliner_color_tag_set_exec(), outliner_draw_hierarchy_lines_recursive(), outliner_draw_restrictbuts(), outliner_drop_insert_collection_find(), outliner_item_drag_drop_invoke(), outliner_restrict_properties_collection_set(), tree_element_get_icon(), and tselem_draw_icon().
|
static |
Definition at line 1584 of file outliner_collections.cc.
References BKE_id_is_editable(), BKE_report(), BLI_freelistN(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_space_outliner(), LISTBASE_FOREACH, Scene::master_collection, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_collection_from_tree_element(), outliner_find_selected_collections(), outliner_tree_traverse(), wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_WARNING, scene, SpaceOutliner::tree, TSE_SELECTED, and WM_event_add_notifier().
Referenced by OUTLINER_OT_collection_color_tag_set().
|
static |
Definition at line 538 of file outliner_collections.cc.
References data, TRAVERSE_BREAK, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, TSE_R_LAYER, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_active_collection().
|
static |
Definition at line 444 of file outliner_collections.cc.
References data, TreeElement::directdata, TRAVERSE_BREAK, TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_LAYER_COLLECTION, TSE_R_LAYER, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by outliner_active_layer_collection().
TreeTraversalAction outliner_find_selected_collections | ( | TreeElement * | te, |
void * | customdata | ||
) |
Definition at line 89 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_GR, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_color_tag_set_exec(), and outliner_item_drag_drop_invoke().
TreeTraversalAction outliner_find_selected_objects | ( | TreeElement * | te, |
void * | customdata | ||
) |
Definition at line 106 of file outliner_collections.cc.
References BLI_addtail(), BLI_genericNodeN(), data, GS, TreeStoreElem::id, ID_OB, ID::name, outliner_is_collection_tree_element(), TRAVERSE_CONTINUE, TRAVERSE_SKIP_CHILDS, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by ED_outliner_selected_objects_get(), and outliner_item_drag_drop_invoke().
|
static |
Definition at line 1483 of file outliner_collections.cc.
References BASE_HIDDEN, BKE_layer_collection_set_visible(), BKE_layer_collection_sync(), BLI_gset_free(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_outliner(), data, DEG_id_tag_update(), Base::flag, GSET_ITER, Scene::id, ID_RECALC_BASE_FLAGS, NC_SCENE, ND_LAYER_CONTENT, OPERATOR_FINISHED, outliner_hide_find_data_to_edit(), outliner_tree_traverse(), scene, SpaceOutliner::tree, TSE_SELECTED, and WM_main_add_notifier().
Referenced by OUTLINER_OT_hide().
|
static |
Definition at line 1452 of file outliner_collections.cc.
References BKE_view_layer_base_find(), BLI_gset_add(), LayerCollection::collection, COLLECTION_IS_MASTER, data, TreeElement::directdata, Collection::flag, TreeStoreElem::id, ID_OB, TreeElement::idcode, TRAVERSE_CONTINUE, TREESTORE, TSE_LAYER_COLLECTION, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_hide_exec().
bool outliner_is_collection_tree_element | ( | const TreeElement * | te | ) |
Definition at line 45 of file outliner_collections.cc.
References ELEM, ID_GR, TreeElement::idcode, TREESTORE, TSE_LAYER_COLLECTION, TSE_SCENE_COLLECTION_BASE, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, and TreeStoreElem::type.
Referenced by collection_drop_tooltip(), do_item_rename(), is_collection_element(), outliner_draw_restrictbuts(), outliner_element_is_collection_or_object(), outliner_find_objects_to_delete(), outliner_find_selected_collections(), outliner_find_selected_objects(), outliner_item_drag_drop_invoke(), test_collection_callback(), and tselem_draw_icon().
void OUTLINER_OT_collection_color_tag_set | ( | wmOperatorType * | ot | ) |
Definition at line 1621 of file outliner_collections.cc.
References COLLECTION_COLOR_NONE, wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_color_tag_set_exec(), wmOperatorType::poll, RNA_def_enum(), rna_enum_collection_color_items, and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_disable | ( | wmOperatorType * | ot | ) |
Definition at line 1393 of file outliner_collections.cc.
References collection_disable_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_disable_render | ( | wmOperatorType * | ot | ) |
Definition at line 1423 of file outliner_collections.cc.
References collection_disable_render_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 652 of file outliner_collections.cc.
References collection_duplicate_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_duplicate_linked | ( | wmOperatorType * | ot | ) |
Definition at line 635 of file outliner_collections.cc.
References collection_duplicate_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_enable | ( | wmOperatorType * | ot | ) |
Definition at line 1378 of file outliner_collections.cc.
References collection_enable_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_enable_render | ( | wmOperatorType * | ot | ) |
Definition at line 1408 of file outliner_collections.cc.
References collection_enable_render_poll(), collection_flag_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_exclude_clear | ( | wmOperatorType * | ot | ) |
Definition at line 967 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_exclude_set | ( | wmOperatorType * | ot | ) |
Definition at line 952 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_exclude_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hide | ( | wmOperatorType * | ot | ) |
Definition at line 1199 of file outliner_collections.cc.
References collection_hide_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hide_inside | ( | wmOperatorType * | ot | ) |
Definition at line 1229 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_hierarchy_delete | ( | wmOperatorType * | ot | ) |
Definition at line 418 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_hierarchy_delete_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_holdout_clear | ( | wmOperatorType * | ot | ) |
Definition at line 997 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_holdout_set | ( | wmOperatorType * | ot | ) |
Definition at line 982 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_holdout_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_indirect_only_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1029 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_clear_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_indirect_only_set | ( | wmOperatorType * | ot | ) |
Definition at line 1012 of file outliner_collections.cc.
References collection_view_layer_exec(), collections_indirect_only_set_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_instance | ( | wmOperatorType * | ot | ) |
Definition at line 794 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_instance_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_isolate | ( | wmOperatorType * | ot | ) |
Definition at line 1109 of file outliner_collections.cc.
References collection_isolate_exec(), collection_isolate_invoke(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_link | ( | wmOperatorType * | ot | ) |
Definition at line 720 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_link_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_new | ( | wmOperatorType * | ot | ) |
Definition at line 249 of file outliner_collections.cc.
References collection_edit_in_active_scene_poll(), collection_new_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_objects_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 513 of file outliner_collections.cc.
References collection_objects_select_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_objects_select | ( | wmOperatorType * | ot | ) |
Definition at line 498 of file outliner_collections.cc.
References collection_objects_select_exec(), wmOperatorType::description, ED_outliner_collections_editor_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_show | ( | wmOperatorType * | ot | ) |
Definition at line 1184 of file outliner_collections.cc.
References collection_show_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_collection_show_inside | ( | wmOperatorType * | ot | ) |
Definition at line 1214 of file outliner_collections.cc.
References collection_inside_poll(), collection_visibility_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_hide | ( | wmOperatorType * | ot | ) |
Definition at line 1524 of file outliner_collections.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_hide_exec(), outliner_view_layer_collections_editor_poll(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
void OUTLINER_OT_unhide_all | ( | wmOperatorType * | ot | ) |
Definition at line 1563 of file outliner_collections.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, outliner_unhide_all_exec(), outliner_view_layer_collections_editor_poll(), and wmOperatorType::poll.
Referenced by outliner_operatortypes().
|
static |
Definition at line 1539 of file outliner_collections.cc.
References BASE_HIDDEN, BKE_layer_collection_set_flag(), BKE_layer_collection_sync(), C, CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ListBase::first, Scene::id, ID_RECALC_BASE_FLAGS, LAYER_COLLECTION_HIDE, LayerCollection::layer_collections, ViewLayer::layer_collections, LISTBASE_FOREACH, NC_SCENE, ND_LAYER_CONTENT, ViewLayer::object_bases, OPERATOR_FINISHED, scene, and WM_main_add_notifier().
Referenced by OUTLINER_OT_unhide_all().
Definition at line 156 of file outliner_collections.cc.
References C, CTX_wm_space_outliner(), SpaceOutliner::outlinevis, and SO_VIEW_LAYER.
Referenced by OUTLINER_OT_hide(), and OUTLINER_OT_unhide_all().