Blender
V3.3
|
#include "DNA_armature_types.h"
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_light_types.h"
#include "DNA_lightprobe_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_text_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_mempool.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_deform.h"
#include "BKE_gpencil.h"
#include "BKE_idtype.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_main_namemap.h"
#include "BKE_modifier.h"
#include "BKE_node.h"
#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "ED_armature.h"
#include "ED_fileselect.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
#include "GPU_immediate.h"
#include "GPU_state.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "outliner_intern.hh"
#include "tree/tree_display.hh"
#include "tree/tree_element.hh"
#include "tree/tree_element_id.hh"
#include "tree/tree_element_overrides.hh"
#include "tree/tree_element_rna.hh"
#include "tree/tree_iterator.hh"
Go to the source code of this file.
Classes | |
struct | RestrictProperties |
struct | RestrictPropertiesActive |
struct | MergedIconRow |
Definition at line 3886 of file outliner_draw.cc.
References C, CTX_data_main(), CTX_wm_region(), CTX_wm_space_outliner(), View2D::cur, ED_outliner_select_sync_flag_outliners(), ED_outliner_select_sync_is_dirty(), ELEM, SpaceOutliner::flag, View2D::flag, SpaceOutliner::lib_override_view_mode, OL_RNA_COL_SIZEX, outliner_back(), outliner_build_tree(), outliner_buttons(), outliner_data_api_buttons_start_x(), outliner_draw_mode_column(), outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_restrictbuts(), outliner_draw_rnabuts(), outliner_draw_separator(), outliner_draw_tree(), outliner_draw_userbuts(), outliner_draw_warning_column(), outliner_has_element_warnings(), outliner_right_columns_width(), outliner_shows_mode_column(), outliner_sync_selection(), outliner_tree_dimensions(), outliner_update_viewable_area(), outliner_viewcontext_init(), SpaceOutliner::outlinevis, TreeViewContext::scene, SO_DATA_API, SO_ID_ORPHANS, SO_LIB_OVERRIDE_VIEW_HIERARCHIES, SO_LIB_OVERRIDE_VIEW_PROPERTIES, SO_LIBRARIES, SO_OVERRIDES_LIBRARY, SO_SYNC_SELECT, SpaceOutliner::tree, UI_block_begin(), UI_block_draw(), UI_block_emboss_set(), UI_block_end(), UI_block_flag_enable(), UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE, UI_EMBOSS, UI_EMBOSS_NONE_OR_STATUS, UI_view2d_view_ortho(), ARegion::v2d, V2D_PIXELOFS_X, V2D_PIXELOFS_Y, TreeViewContext::view_layer, x, and rctf::xmax.
Referenced by outliner_main_region_draw().
|
static |
Definition at line 3222 of file outliner_draw.cc.
References BASE_VISIBLE_VIEWLAYER, BKE_view_layer_base_find(), TreeElement::directdata, TreeElement::flag, LayerCollection::flag, TreeStoreElem::id, ID_OB, TreeElement::idcode, LAYER_COLLECTION_EXCLUDE, LAYER_COLLECTION_VISIBLE_VIEW_LAYER, LayerCollection::runtime_flag, TE_CHILD_NOT_IN_COLLECTION, TSE_LAYER_COLLECTION, TSE_SOME_ID, TreeStoreElem::type, and TreeViewContext::view_layer.
Referenced by outliner_draw_tree_element().
The active object is only needed for reference.
Definition at line 115 of file outliner_draw.cc.
References BKE_object_data_is_in_editmode(), Object::data, GPENCIL_EDIT_MODE, GS, id, ID_GD, Object::mode, ID::name, OB_DATA_SUPPORT_EDITMODE, and OB_MODE_EDIT.
Referenced by outliner_draw_iconrow(), and outliner_draw_tree_element().
Definition at line 669 of file outliner_draw.cc.
References bPose::agroups, BKE_gpencil_layer_active_set(), BKE_library_filepath_set(), BKE_main_blendfile_path(), BKE_main_namemap_remove_name(), BKE_object_defgroup_unique_name(), BKE_reportf(), BKE_view_layer_rename(), BLI_assert, BLI_exists(), BLI_libblock_ensure_unique_name(), BLI_path_abs(), BLI_strncpy(), BLI_uniquename(), BLT_I18NCONTEXT_ID_ACTION, bPoseChannel::bone, C, CTX_DATA_, CTX_data_main(), CTX_wm_message_bus(), CTX_wm_reports(), CTX_wm_space_outliner(), Object::data, DEG_id_tag_update(), TreeElement::directdata, ED_armature_bone_rename(), bArmature::edbo, FILE_MAX, TreeStoreElem::flag, GS, bAction::id, bArmature::id, Collection::id, bGPdata::id, Object::id, TreeStoreElem::id, Scene::id, ID_IM, ID_LI, ID_MA, ID_OB, ID_RECALC_COPY_ON_WRITE, ID_RECALC_GEOMETRY, ID_SCE, ID_TE, TreeElement::idcode, if(), bGPdata::layers, lib, LIB_TAG_MISSING, NA_RENAME, NA_SELECTED, EditBone::name, bPoseChannel::name, ID::name, NC_GPENCIL, NC_ID, NC_IMAGE, NC_MATERIAL, NC_OBJECT, NC_SCENE, NC_TEXTURE, ND_DATA, ND_POSE, OB_ARMATURE, OB_MBALL, OL_SETSEL_NORMAL, outliner_find_tree_element(), outliner_viewcontext_init(), Object::pose, RPT_ERROR, RPT_INFO, scene, SpaceOutliner::tree, tree_element_activate(), SpaceOutliner::treestore, TSE_BONE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_LAYER_COLLECTION, TSE_NLA_ACTION, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SOME_ID, TSE_TEXTBUT, Object::type, TreeStoreElem::type, WM_event_add_notifier(), and WM_msg_publish_rna_prop.
Referenced by outliner_buttons().
Base properties.
Definition at line 323 of file outliner_draw.cc.
References C, and outliner_object_set_flag_recursive_fn().
Referenced by outliner_draw_restrictbuts().
|
static |
Object properties.
Definition at line 313 of file outliner_draw.cc.
References C, and outliner_object_set_flag_recursive_fn().
Referenced by outliner_draw_restrictbuts().
Definition at line 3810 of file outliner_draw.cc.
References View2D::cur, blender::math::floor(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorBlend(), immVertex2f(), immVertexFormat(), OL_Y_OFFSET, pos, TH_BACK, TH_ROW_ALTERNATE, View2D::tot, UI_GetThemeColor4fv(), UI_UNIT_Y, ARegion::v2d, x2, rctf::xmax, y1, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner().
|
static |
Create either a RNA_ObjectBase or a RNA_Object pointer.
Definition at line 345 of file outliner_draw.cc.
References BKE_view_layer_base_find(), Object::id, Scene::id, ptr, RNA_id_pointer_create(), RNA_pointer_create(), and scene.
Referenced by outliner_collection_set_flag_recursive().
Definition at line 1894 of file outliner_draw.cc.
References Freestyle::a, usdtokens::b(), PointerRNA::data, ID::session_uuid, and UI_but_context_ptr_get().
Referenced by outliner_draw_overrides_restrictbuts().
|
static |
Definition at line 2055 of file outliner_draw.cc.
References BLI_assert, C, View2D::cur, TreeStoreElem::flag, GS, TreeStoreElem::id, ID_LI, len, MAX_ID_NAME, TreeElement::name, ID::name, namebutton_fn(), NC_SPACE, ND_SPACE_OUTLINER, OL_NAMEBUTTON, TREESTORE, TSE_EBONE, TSE_MODIFIER, TSE_TEXTBUT, TreeStoreElem::type, UI_BTYPE_TEXT, UI_but_active_only(), UI_but_func_rename_set(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), ARegion::v2d, WM_event_add_notifier(), rctf::xmax, TreeElement::xs, and TreeElement::ys.
Referenced by draw_outliner().
|
static |
Check if collection is already isolated.
A collection is isolated if all its parents and children are "visible". All the other collections must be "invisible".
NOTE: We could/should boost performance by iterating over the tree twice. First tagging all the children/parent collections, then getting their values and comparing. To run BKE_collection_has_collection() so many times is silly and slow.
Definition at line 420 of file outliner_draw.cc.
References BKE_collection_has_collection(), Collection::children, LayerCollection::collection, COLLECTION_IS_MASTER, Collection::flag, LayerCollection::flag, LAYER_COLLECTION_EXCLUDE, LayerCollection::layer_collections, LISTBASE_FOREACH, outliner_layer_or_collection_pointer_create(), ptr, RNA_property_boolean_get(), and scene.
Referenced by outliner_collection_isolate_flag().
void outliner_collection_isolate_flag | ( | Scene * | scene, |
ViewLayer * | view_layer, | ||
LayerCollection * | layer_collection, | ||
Collection * | collection, | ||
PropertyRNA * | layer_or_collection_prop, | ||
const char * | propname, | ||
const bool | value | ||
) |
Definition at line 479 of file outliner_draw.cc.
References BKE_layer_collection_has_layer_collection(), CollectionParent::collection, LayerCollection::collection, COLLECTION_IS_MASTER, ListBase::first, Collection::flag, Collection::id, LayerCollection::layer_collections, ViewLayer::layer_collections, LISTBASE_FOREACH, Scene::master_collection, outliner_collection_is_isolated(), outliner_collection_set_flag_recursive(), outliner_layer_or_collection_pointer_create(), Collection::parents, ptr, RNA_id_pointer_create(), RNA_property_boolean_get_default(), RNA_property_boolean_set(), and scene.
Referenced by collection_isolate_exec(), and outliner_collection_set_flag_recursive_fn().
|
static |
Definition at line 359 of file outliner_draw.cc.
References Collection::children, LayerCollection::collection, DEG_id_tag_update(), LayerCollection::flag, Collection::gobject, Collection::id, ID_RECALC_COPY_ON_WRITE, LAYER_COLLECTION_EXCLUDE, LayerCollection::layer_collections, LISTBASE_FOREACH, outliner_base_or_object_pointer_create(), outliner_layer_or_collection_pointer_create(), ptr, RNA_property_boolean_set(), and scene.
Referenced by outliner_collection_isolate_flag(), and outliner_collection_set_flag_recursive_fn().
|
static |
Definition at line 573 of file outliner_draw.cc.
References BKE_main_collection_sync_remap(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_window(), data, DEG_relations_tag_update(), ELEM, wmWindow::eventstate, Collection::id, Scene::id, KM_CTRL, KM_SHIFT, wmEvent::modifier, outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), outliner_layer_or_collection_pointer_create(), ptr, RNA_pointer_create(), RNA_property_boolean_get(), RNA_struct_type_find_property(), and scene.
Referenced by scenes__collection_set_flag_recursive_fn(), view_layer__collection_set_flag_recursive_fn(), and view_layer__layer_collection_set_flag_recursive_fn().
|
static |
Definition at line 3848 of file outliner_draw.cc.
References max_ii(), OL_RNA_COL_SPACEX, and OL_RNA_COLX.
Referenced by draw_outliner(), and outliner_width().
|
static |
Definition at line 3004 of file outliner_draw.cc.
References BLI_rctf_init(), GPU_blend(), GPU_BLEND_ALPHA, UI_CNR_ALL, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), UI_UNIT_X, and UI_UNIT_Y.
Referenced by outliner_draw_iconrow_doit(), and outliner_draw_tree_element().
|
static |
Definition at line 2243 of file outliner_draw.cc.
References blender::ed::outliner::AbstractTreeElement::getWarning(), blender::StringRefBase::is_empty(), outliner_draw_get_warning_tree_element_subtree(), TreeElement::store_elem, and TSELEM_OPEN.
Referenced by outliner_draw_warning_column().
|
static |
Definition at line 2224 of file outliner_draw.cc.
References blender::ed::outliner::AbstractTreeElement::getWarning(), blender::StringRefBase::is_empty(), LISTBASE_FOREACH, and TreeElement::subtree.
Referenced by outliner_draw_get_warning_tree_element().
|
static |
Definition at line 3488 of file outliner_draw.cc.
References GPU_PRIM_LINES, immBegin(), immEnd(), immUniform1f(), immVertex2f(), pos, UI_UNIT_Y, x, and y1.
Referenced by outliner_draw_hierarchy_lines_recursive().
|
static |
Definition at line 3561 of file outliner_draw.cc.
References col, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBindBuiltinProgram(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immVertexFormat(), outliner_draw_hierarchy_lines_recursive(), pos, TH_BACK, TH_TEXT, UI_DPI_FAC, and UI_GetThemeColorBlend3ubv().
Referenced by outliner_draw_tree().
|
static |
Definition at line 3505 of file outliner_draw.cc.
References BLI_listbase_is_empty(), col, bTheme::collection_color, COLLECTION_COLOR_NONE, ThemeCollectionColor::color, Collection::color_tag, ID_OB, immUniformColor4ubv(), LISTBASE_FOREACH, outliner_collection_from_tree_element(), outliner_draw_hierarchy_line(), pos, subtree_contains_object(), TREESTORE, TSE_LAYER_COLLECTION, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, UI_GetTheme(), UI_UNIT_X, UI_UNIT_Y, and y.
Referenced by outliner_draw_hierarchy_lines().
|
static |
Definition at line 3701 of file outliner_draw.cc.
References GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immUnbindProgram(), immVertexFormat(), outliner_draw_highlights(), pos, TH_MATCH, TH_SELECT_ACTIVE, TH_SELECT_HIGHLIGHT, UI_GetThemeColor3fv(), and UI_GetThemeColor4fv().
|
static |
Definition at line 3628 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), col, View2D::cur, TreeStoreElem::flag, if(), immRecti(), immUniformColor3fvAlpha(), immUniformColor4fv(), SpaceOutliner::outlinevis, pos, SpaceOutliner::search_string, SEARCHING_OUTLINER, SO_DATA_API, TH_BACK, TREESTORE, TSE_ACTIVE, TSE_DRAG_AFTER, TSE_DRAG_ANY, TSE_DRAG_BEFORE, TSE_HIGHLIGHTED, TSE_SEARCHMATCH, TSE_SELECTED, UI_GetThemeColorShade4fv(), UI_UNIT_Y, ARegion::v2d, and rctf::xmax.
Referenced by outliner_draw_highlights(), and outliner_draw_tree().
|
static |
Definition at line 3091 of file outliner_draw.cc.
References blender::compositor::active, MergedIconRow::active, C, ELEM, TreeStoreElem::id, ID_OB, INDEX_ID_MAX, INDEX_ID_OB, is_object_data_in_editmode(), LISTBASE_FOREACH, MAX2, MergedIconRow::num_elements, OB_TYPE_MAX, TreeViewContext::obact, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, OL_DRAWSEL_NORMAL, outliner_draw_iconrow_doit(), TE_ICONROW, TE_ICONROW_MERGED, MergedIconRow::tree_element, tree_element_active_state_get(), tree_element_id_type_to_index(), tree_element_type_active_state_get(), TREESTORE, TSE_BONE, TSE_DEFGROUP, TSE_EBONE, TSE_GP_LAYER, TSE_ID_BASE, TSE_LAYER_COLLECTION, TSE_LIBRARY_OVERRIDE, TSE_LIBRARY_OVERRIDE_BASE, TSE_LIBRARY_OVERRIDE_OPERATION, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_R_LAYER, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_draw_tree_element().
|
static |
Definition at line 3022 of file outliner_draw.cc.
References blender::compositor::active, TreeElement::flag, TreeStoreElem::flag, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, outliner_draw_active_indicator(), outliner_draw_iconrow_number(), outliner_icon_background_colors(), TE_ICONROW, TE_ICONROW_MERGED, TH_EDITED_OBJECT, TREESTORE, TSE_HIGHLIGHTED_ICON, tselem_draw_icon(), UI_GetThemeColor4fv(), UI_UNIT_X, UI_UNIT_Y, TreeElement::xend, TreeElement::xs, and TreeElement::ys.
Referenced by outliner_draw_iconrow().
|
static |
For icon-only children of a collapsed tree, Draw small number over the icon to show how many items of this type are displayed.
Definition at line 2949 of file outliner_draw.cc.
References BLI_rctf_init(), BLI_snprintf(), color, float(), GPU_blend(), GPU_BLEND_ALPHA, uiFontStyle::points, TH_TEXT_HI, UI_CNR_ALL, UI_draw_roundbox_aa(), UI_draw_roundbox_corner_set(), UI_fontstyle_draw_simple(), UI_fontstyle_set(), UI_GetThemeColor3ubv(), UI_UNIT_X, and UI_UNIT_Y.
Referenced by outliner_draw_iconrow_doit().
|
static |
Definition at line 2211 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), Object::mode, OB_MODE_OBJECT, TreeViewContext::obact, ToolSettings::object_flag, SCE_OBJECT_MODE_LOCK, TreeViewContext::scene, and Scene::toolsettings.
Referenced by draw_outliner().
|
static |
Definition at line 2135 of file outliner_draw.cc.
References Object::data, IDOverrideLibrary::flag, Object::id, TreeStoreElem::id, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY_REAL, ID_OB, TreeElement::idcode, IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED, if(), Object::mode, TreeViewContext::ob_edit, OB_MODE_PARTICLE_EDIT, TreeViewContext::ob_pose, TreeViewContext::obact, outliner_mode_toggle_fn(), ID::override_library, psys_get_current(), TIP_, TREESTORE, TSE_SOME_ID, Object::type, TreeStoreElem::type, UI_block_emboss_set(), UI_BTYPE_ICON_TOGGLE, UI_but_disable(), UI_BUT_DRAG_LOCK, UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_UNDO, UI_EMBOSS_NONE_OR_STATUS, UI_icon_from_object_mode(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and TreeElement::ys.
|
static |
Definition at line 1908 of file outliner_draw.cc.
References BKE_lib_override_library_is_system_defined(), BLI_assert, blender::ed::outliner::TreeElementID::get_ID(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, LISTBASE_FOREACH, outliner_but_identity_cmp_context_id_fn(), outliner_is_element_in_view(), RNA_id_pointer_create(), TREESTORE, TSELEM_OPEN, UI_BTYPE_BUT, UI_but_context_ptr_set(), UI_BUT_DRAG_LOCK, UI_but_flag_enable(), UI_but_func_identity_compare_set(), UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), ARegion::v2d, WM_OP_EXEC_DEFAULT, and x.
Referenced by draw_outliner().
|
static |
Definition at line 1800 of file outliner_draw.cc.
References blender::StringRefNull::c_str(), blender::ed::outliner::TreeElementOverridesProperty::is_rna_path_valid, LISTBASE_FOREACH, OL_RNA_COL_SIZEX, outliner_is_element_in_view(), blender::ed::outliner::TreeElementOverridesProperty::override_rna_prop, blender::ed::outliner::TreeElementOverridesProperty::override_rna_ptr, PROP_ENUM, ptr, blender::ed::outliner::TreeElementOverridesProperty::rna_path, RNA_property_type(), round_fl_to_int(), TREESTORE, TSELEM_OPEN, UI_BTYPE_LABEL, UI_but_flag_enable(), UI_BUT_REDALERT, UI_DPI_FAC, UI_UNIT_Y, uiDefAutoButR(), uiDefAutoButsArrayR(), uiDefBut(), ARegion::v2d, and x.
Referenced by draw_outliner().
|
static |
Definition at line 1030 of file outliner_draw.cc.
References RestrictProperties::base_hide_viewport, RestrictPropertiesActive::base_hide_viewport, BKE_view_layer_base_find(), BLI_assert, bPoseChannel::bone, BONE_HIDDEN_A, RestrictProperties::bone_hide_viewport, BONE_UNSELECTABLE, RestrictProperties::collection_hide_render, RestrictPropertiesActive::collection_hide_render, RestrictProperties::collection_hide_select, RestrictPropertiesActive::collection_hide_select, RestrictProperties::collection_hide_viewport, RestrictPropertiesActive::collection_hide_viewport, RestrictProperties::constraint_enable, RestrictPropertiesActive::constraint_enable, View2D::cur, ELEM, bGPDlayer::flag, ViewLayer::flag, GP_LAYER_HIDE, GP_LAYER_LOCKED, bArmature::id, Object::id, TreeStoreElem::id, Scene::id, ID_OB, if(), RestrictProperties::initialized, RestrictProperties::layer_collection_exclude, RestrictProperties::layer_collection_hide_viewport, RestrictPropertiesActive::layer_collection_hide_viewport, RestrictProperties::layer_collection_holdout, RestrictPropertiesActive::layer_collection_holdout, RestrictProperties::layer_collection_indirect_only, RestrictPropertiesActive::layer_collection_indirect_only, LISTBASE_FOREACH, RestrictProperties::modifier_show_render, RestrictPropertiesActive::modifier_show_render, RestrictProperties::modifier_show_viewport, RestrictPropertiesActive::modifier_show_viewport, RestrictProperties::object_hide_render, RestrictPropertiesActive::object_hide_render, RestrictProperties::object_hide_select, RestrictPropertiesActive::object_hide_select, RestrictProperties::object_hide_viewport, RestrictPropertiesActive::object_hide_viewport, outliner__base_set_flag_recursive_fn(), outliner__object_set_flag_recursive_fn(), outliner_collection_from_tree_element(), outliner_is_collection_tree_element(), outliner_restrict_properties_collection_set(), outliner_right_columns_width(), SpaceOutliner::outlinevis, ptr, restrictbutton_bone_select_fn(), restrictbutton_bone_visibility_fn(), restrictbutton_ebone_select_fn(), restrictbutton_ebone_visibility_fn(), restrictbutton_gp_layer_flag_fn(), restrictbutton_r_lay_fn(), RNA_id_pointer_create(), RNA_pointer_create(), RNA_struct_type_find_property(), scene, scenes__collection_set_flag_recursive_fn(), select(), SpaceOutliner::show_restrict_flags, SO_RESTRICT_ENABLE, SO_RESTRICT_HIDE, SO_RESTRICT_HOLDOUT, SO_RESTRICT_INDIRECT_ONLY, SO_RESTRICT_RENDER, SO_RESTRICT_SELECT, SO_RESTRICT_VIEWPORT, SO_SCENES, SO_VIEW_LAYER, TE_CHILD_NOT_IN_COLLECTION, TIP_, TREESTORE, TSE_CONSTRAINT, TSE_EBONE, TSE_GP_LAYER, TSE_LAYER_COLLECTION, TSE_MODIFIER, TSE_POSE_CHANNEL, TSE_R_LAYER, TSE_SOME_ID, TSELEM_OPEN, TreeStoreElem::type, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BUT_DRAG_LOCK, UI_but_drawflag_enable(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_ICON_REVERSE, UI_BUT_INACTIVE, UI_UNIT_X, UI_UNIT_Y, uiDefIconButBitI(), uiDefIconButBitS(), uiDefIconButR_prop(), ARegion::v2d, V2D_SCROLL_WIDTH, view_layer__collection_set_flag_recursive_fn(), view_layer__layer_collection_set_flag_recursive_fn(), VIEW_LAYER_RENDER, rctf::xmax, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner().
|
static |
Definition at line 1977 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), TreeElement::index, OL_RNA_COL_SIZEX, outliner_is_element_in_view(), PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), TREESTORE, TSELEM_OPEN, UI_BUT_DISABLED, UI_but_flag_enable(), UI_UNIT_Y, uiDefAutoButR(), ARegion::v2d, and TreeElement::ys.
Referenced by draw_outliner().
Definition at line 1957 of file outliner_draw.cc.
References View2D::cur, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertex2f(), immVertexFormat(), pos, TH_BACK, ARegion::v2d, x, rctf::ymax, and rctf::ymin.
Referenced by draw_outliner().
|
static |
Definition at line 3588 of file outliner_draw.cc.
References View2D::cur, GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immRecti(), immThemeColorShadeAlpha(), immUnbindProgram(), immVertex2f(), immVertexFormat(), LISTBASE_FOREACH, pos, TH_BACK, TREESTORE, TSE_RNA_STRUCT, TSELEM_OPEN, TreeStoreElem::type, UI_UNIT_Y, ARegion::v2d, and rctf::xmax.
Referenced by outliner_draw_tree().
|
static |
Definition at line 3733 of file outliner_draw.cc.
References BLI_rcti_size_x(), C, CLAMP_MIN, GPU_blend(), GPU_BLEND_ALPHA, GPU_scissor(), GPU_scissor_get(), LISTBASE_FOREACH, View2D::mask, OL_Y_OFFSET, outliner_draw_hierarchy_lines(), outliner_draw_highlights(), outliner_draw_struct_marks(), outliner_draw_tree_element(), SpaceOutliner::outlinevis, SO_DATA_API, SO_SCENES, SO_VIEW_LAYER, TE_DRAGGING, View2D::tot, SpaceOutliner::tree, UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, UNPACK4, ARegion::v2d, ARegion::winy, and rctf::ymax.
Referenced by draw_outliner().
|
static |
Definition at line 3257 of file outliner_draw.cc.
References blender::compositor::active, BASE_SELECTED, BKE_view_layer_base_find(), C, View2D::cur, TreeElement::directdata, ELEM, element_should_draw_faded(), ListBase::first, TreeElement::flag, TreeStoreElem::flag, blender::ed::outliner::TreeElementRNACommon::getPointerRNA(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, TreeStoreElem::id, ID_OB, ID_SCE, TreeElement::idcode, is_object_data_in_editmode(), LISTBASE_FOREACH, TreeElement::name, TreeViewContext::obact, OL_DRAWSEL_ACTIVE, OL_DRAWSEL_NONE, outliner_draw_active_indicator(), outliner_draw_iconrow(), outliner_icon_background_colors(), outliner_set_subtree_coords(), RNA_struct_is_ID(), TreeElement::subtree, TE_ACTIVE, TE_DRAGGING, TE_PRETEND_HAS_CHILDREN, TH_ACTIVE_OBJECT, TH_BACK, TH_EDITED_OBJECT, TH_SELECTED_OBJECT, TH_TEXT, tree_element_active_state_get(), tree_element_type_active_state_get(), TREESTORE, TSE_HIGHLIGHTED_ICON, TSE_ID_BASE, TSE_LAYER_COLLECTION, TSE_R_LAYER, TSE_RNA_ARRAY_ELEM, TSE_RNA_PROPERTY, TSE_SOME_ID, TSE_TEXTBUT, TSE_VIEW_COLLECTION_BASE, tselem_draw_icon(), TSELEM_OPEN, TreeStoreElem::type, PointerRNA::type, UI_fontstyle_draw_simple(), UI_fontstyle_string_width(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_GetThemeColorBlend3ubv(), UI_icon_draw_alpha(), UI_icon_from_library(), UI_UNIT_X, UI_UNIT_Y, ARegion::v2d, TreeViewContext::view_layer, TreeElement::xend, rctf::xmax, TreeElement::xs, rctf::ymin, and TreeElement::ys.
Referenced by outliner_draw_tree().
|
static |
Definition at line 1733 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), BLI_str_format_int_grouped(), View2D::cur, ID::flag, id, ID_IS_LINKED, if(), LIB_FAKEUSER, OL_TOG_USER_BUTS_STATUS, OL_TOG_USER_BUTS_USERS, outliner_is_element_in_view(), restrictbutton_id_user_toggle(), TIP_, TREESTORE, TSE_SOME_ID, UI_BTYPE_BUT, UI_BTYPE_ICON_TOGGLE, UI_BUT_DISABLED, UI_BUT_DRAG_LOCK, UI_but_flag_enable(), UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButBitS(), ID::us, ARegion::v2d, rctf::xmax, and TreeElement::ys.
Referenced by draw_outliner().
|
static |
Definition at line 2292 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all_open(), blender::StringRefBase::is_empty(), outliner_draw_get_warning_tree_element(), outliner_draw_warning_tree_element(), and TreeElement::ys.
Referenced by draw_outliner().
|
static |
Definition at line 2262 of file outliner_draw.cc.
References blender::StringRefNull::c_str(), SpaceOutliner::outlinevis, SO_SCENES, UI_block_emboss_set(), UI_BTYPE_ICON_TOGGLE, UI_but_flag_disable(), UI_BUT_UNDO, UI_EMBOSS_NONE_OR_STATUS, UI_UNIT_X, UI_UNIT_Y, and uiDefIconBut().
Referenced by outliner_draw_warning_column().
Definition at line 2992 of file outliner_draw.cc.
References copy_v3_v3(), TH_TEXT, and UI_GetThemeColor4fv().
Referenced by outliner_draw_iconrow_doit(), and outliner_draw_tree_element().
|
static |
Create either a RNA_LayerCollection or a RNA_Collection pointer.
Definition at line 331 of file outliner_draw.cc.
References Collection::id, Scene::id, ptr, RNA_id_pointer_create(), RNA_pointer_create(), and scene.
Referenced by outliner_collection_is_isolated(), outliner_collection_isolate_flag(), outliner_collection_set_flag_recursive(), and outliner_collection_set_flag_recursive_fn().
Definition at line 2111 of file outliner_draw.cc.
References BLI_assert, C, CTX_wm_space_outliner(), CTX_wm_window(), Object::data, wmWindow::eventstate, GS, TreeStoreElem::id, ID_OB, KM_CTRL, wmEvent::modifier, ID::name, TreeViewContext::obact, outliner_find_tree_element(), outliner_item_mode_toggle(), outliner_viewcontext_init(), and SpaceOutliner::tree.
Referenced by outliner_draw_mode_column_toggle().
|
static |
Definition at line 252 of file outliner_draw.cc.
References BKE_layer_collection_sync(), BKE_main_collection_sync_remap(), BKE_object_is_child_recursive(), BKE_view_layer_base_find(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_window(), data, DEG_id_tag_update(), DEG_relations_tag_update(), wmWindow::eventstate, ListBase::first, Object::id, Scene::id, ID_RECALC_BASE_FLAGS, ID_RECALC_COPY_ON_WRITE, KM_SHIFT, wmEvent::modifier, Base::object, Main::objects, ptr, RNA_id_pointer_create(), RNA_pointer_create(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_struct_type_find_property(), and scene.
Referenced by outliner__base_set_flag_recursive_fn(), and outliner__object_set_flag_recursive_fn().
|
static |
Definition at line 996 of file outliner_draw.cc.
References COLLECTION_IS_MASTER, TreeElement::directdata, Collection::flag, Collection::id, Scene::id, outliner_collection_from_tree_element(), outliner_restrict_properties_enable_collection_set(), outliner_restrict_properties_enable_layer_collection_set(), RNA_id_pointer_create(), RNA_pointer_create(), scene, TREESTORE, TSE_LAYER_COLLECTION, and TreeStoreElem::type.
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 914 of file outliner_draw.cc.
References RestrictPropertiesActive::base_hide_viewport, RestrictProperties::collection_hide_render, RestrictPropertiesActive::collection_hide_render, RestrictProperties::collection_hide_select, RestrictPropertiesActive::collection_hide_select, RestrictProperties::collection_hide_viewport, RestrictPropertiesActive::collection_hide_viewport, RestrictPropertiesActive::constraint_enable, RestrictPropertiesActive::layer_collection_hide_viewport, RestrictPropertiesActive::layer_collection_holdout, RestrictPropertiesActive::layer_collection_indirect_only, RestrictPropertiesActive::modifier_show_render, RestrictPropertiesActive::modifier_show_viewport, RestrictPropertiesActive::object_hide_render, RestrictPropertiesActive::object_hide_select, RestrictPropertiesActive::object_hide_viewport, and RNA_property_boolean_get().
Referenced by outliner_restrict_properties_collection_set(), and outliner_restrict_properties_enable_layer_collection_set().
|
static |
Definition at line 952 of file outliner_draw.cc.
References RestrictPropertiesActive::base_hide_viewport, RestrictPropertiesActive::collection_hide_render, RestrictPropertiesActive::collection_hide_select, RestrictPropertiesActive::collection_hide_viewport, RestrictProperties::layer_collection_exclude, RestrictPropertiesActive::layer_collection_exclude, RestrictProperties::layer_collection_hide_viewport, RestrictPropertiesActive::layer_collection_hide_viewport, RestrictProperties::layer_collection_holdout, RestrictPropertiesActive::layer_collection_holdout, RestrictProperties::layer_collection_indirect_only, RestrictPropertiesActive::layer_collection_indirect_only, RestrictPropertiesActive::object_hide_select, outliner_restrict_properties_enable_collection_set(), and RNA_property_boolean_get().
Referenced by outliner_restrict_properties_collection_set().
|
static |
Definition at line 3210 of file outliner_draw.cc.
References blender::ed::outliner::tree_iterator::all(), and TreeElement::subtree.
Referenced by outliner_draw_tree_element().
void outliner_tree_dimensions | ( | SpaceOutliner * | space_outliner, |
int * | r_width, | ||
int * | r_height | ||
) |
Definition at line 105 of file outliner_draw.cc.
References outliner_tree_dimensions_impl(), and SpaceOutliner::tree.
Referenced by draw_outliner(), and outliner_scroll_view().
|
static |
Definition at line 84 of file outliner_draw.cc.
References height, LISTBASE_FOREACH, MAX2, TREESTORE, TSELEM_OPEN, UI_UNIT_Y, and width.
Referenced by outliner_tree_dimensions().
|
static |
Definition at line 3863 of file outliner_draw.cc.
References OL_Y_OFFSET, outliner_width(), UI_view2d_totRect_set(), ARegion::v2d, and V2D_SCROLL_HEIGHT.
Referenced by draw_outliner().
|
static |
Definition at line 3853 of file outliner_draw.cc.
References OL_RNA_COL_SIZEX, outliner_data_api_buttons_start_x(), SpaceOutliner::outlinevis, SO_DATA_API, and UI_DPI_FAC.
Referenced by outliner_update_viewable_area().
Definition at line 184 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, C, CTX_wm_window(), wmWindow::eventstate, Bone::flag, KM_SHIFT, wmEvent::modifier, NC_OBJECT, ND_POSE, restrictbutton_recursive_bone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 175 of file outliner_draw.cc.
References BONE_HIDDEN_P, C, CTX_wm_window(), wmWindow::eventstate, Bone::flag, KM_SHIFT, wmEvent::modifier, and restrictbutton_recursive_bone().
Referenced by outliner_draw_restrictbuts().
Definition at line 198 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_UNSELECTABLE, C, CTX_wm_window(), wmWindow::eventstate, EditBone::flag, KM_SHIFT, wmEvent::modifier, NC_OBJECT, ND_POSE, restrictbutton_recursive_ebone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
Definition at line 215 of file outliner_draw.cc.
References BONE_HIDDEN_A, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, C, CTX_wm_window(), wmWindow::eventstate, EditBone::flag, KM_SHIFT, wmEvent::modifier, NC_OBJECT, ND_POSE, restrictbutton_recursive_ebone(), and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 230 of file outliner_draw.cc.
References C, DEG_id_tag_update(), ID_RECALC_GEOMETRY, NA_EDITED, NC_GPENCIL, ND_DATA, and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
|
static |
Definition at line 238 of file outliner_draw.cc.
References BLI_assert, ID::flag, id, id_us_min(), id_us_plus(), and LIB_FAKEUSER.
Referenced by outliner_draw_userbuts().
Definition at line 170 of file outliner_draw.cc.
References C, NC_SCENE, ND_RENDER_OPTIONS, and WM_event_add_notifier().
Referenced by outliner_draw_restrictbuts().
Definition at line 156 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, Bone::childbase, and LISTBASE_FOREACH.
Referenced by restrictbutton_bone_select_fn(), and restrictbutton_bone_visibility_fn().
|
static |
Definition at line 138 of file outliner_draw.cc.
References BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, ED_armature_ebone_is_child_recursive(), bArmature::edbo, and LISTBASE_FOREACH.
Referenced by restrictbutton_ebone_select_fn(), and restrictbutton_ebone_visibility_fn().
|
static |
Collection properties called from the Scenes mode. Change the collection children but no objects.
Definition at line 662 of file outliner_draw.cc.
References C, and outliner_collection_set_flag_recursive_fn().
Referenced by outliner_draw_restrictbuts().
Definition at line 3477 of file outliner_draw.cc.
References ID_OB, LISTBASE_FOREACH, TREESTORE, TSE_SOME_ID, and TreeStoreElem::type.
Referenced by outliner_draw_hierarchy_lines_recursive().
TreeElementIcon tree_element_get_icon | ( | TreeStoreElem * | tselem, |
TreeElement * | te | ||
) |
Definition at line 2496 of file outliner_draw.cc.
References TreeElement::abstract_element, BKE_modifier_get_info(), BLI_findlink(), COLLECTION_IS_MASTER, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_ARMATURE, CONSTRAINT_TYPE_CAMERASOLVER, CONSTRAINT_TYPE_CHILDOF, CONSTRAINT_TYPE_CLAMPTO, CONSTRAINT_TYPE_DAMPTRACK, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_LOCLIKE, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_MINMAX, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_PIVOT, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_SAMEVOL, CONSTRAINT_TYPE_SHRINKWRAP, CONSTRAINT_TYPE_SIZELIKE, CONSTRAINT_TYPE_SIZELIMIT, CONSTRAINT_TYPE_SPLINEIK, CONSTRAINT_TYPE_STRETCHTO, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM, CONSTRAINT_TYPE_TRANSFORM_CACHE, CONSTRAINT_TYPE_TRANSLIKE, data, PointerRNA::data, TreeElement::directdata, eGpencilModifierType_Armature, eGpencilModifierType_Array, eGpencilModifierType_Build, eGpencilModifierType_Color, eGpencilModifierType_Hook, eGpencilModifierType_Lattice, eGpencilModifierType_Mirror, eGpencilModifierType_Multiply, eGpencilModifierType_Noise, eGpencilModifierType_Offset, eGpencilModifierType_Opacity, eGpencilModifierType_Shrinkwrap, eGpencilModifierType_Simplify, eGpencilModifierType_Smooth, eGpencilModifierType_Subdiv, eGpencilModifierType_Texture, eGpencilModifierType_Thick, eGpencilModifierType_Time, eGpencilModifierType_Tint, eGpencilModifierType_WeightAngle, eGpencilModifierType_WeightProximity, Collection::flag, blender::ed::outliner::TreeElementRNACommon::getPointerRNA(), Object::greasepencil_modifiers, ModifierTypeInfo::icon, blender::ed::outliner::TreeElementOverridesBase::id, TreeStoreElem::id, TreeElement::idcode, if(), Object::modifiers, TreeStoreElem::nr, OB_GPENCIL, outliner_collection_from_tree_element(), TreeElement::parent, ptr, RNA_struct_is_ID(), RNA_struct_ui_icon(), SEQ_TYPE_ADD, SEQ_TYPE_ADJUSTMENT, SEQ_TYPE_ALPHAOVER, SEQ_TYPE_ALPHAUNDER, SEQ_TYPE_COLOR, SEQ_TYPE_COLORMIX, SEQ_TYPE_CROSS, SEQ_TYPE_GAMCROSS, SEQ_TYPE_GAUSSIAN_BLUR, SEQ_TYPE_GLOW, SEQ_TYPE_IMAGE, SEQ_TYPE_MASK, SEQ_TYPE_META, SEQ_TYPE_MOVIE, SEQ_TYPE_MOVIECLIP, SEQ_TYPE_MUL, SEQ_TYPE_MULTICAM, SEQ_TYPE_OVERDROP, SEQ_TYPE_SCENE, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SPEED, SEQ_TYPE_SUB, SEQ_TYPE_TEXT, SEQ_TYPE_TRANSFORM, SEQ_TYPE_WIPE, tree_element_get_icon_from_id(), TREESTORE, TSE_ANIM_DATA, TSE_BONE, TSE_CONSTRAINT, TSE_CONSTRAINT_BASE, TSE_DEFGROUP, TSE_DEFGROUP_BASE, TSE_DRIVER_BASE, TSE_EBONE, TSE_GP_LAYER, TSE_GPENCIL_EFFECT, TSE_GPENCIL_EFFECT_BASE, TSE_LAYER_COLLECTION, TSE_LIBRARY_OVERRIDE, TSE_LIBRARY_OVERRIDE_BASE, TSE_LINKED_OB, TSE_LINKED_PSYS, TSE_MODIFIER, TSE_MODIFIER_BASE, TSE_NLA, TSE_NLA_ACTION, TSE_NLA_TRACK, TSE_POSE_BASE, TSE_POSE_CHANNEL, TSE_POSEGRP, TSE_POSEGRP_BASE, TSE_R_LAYER, TSE_R_LAYER_BASE, TSE_RNA_STRUCT, TSE_SCENE_COLLECTION_BASE, TSE_SCENE_OBJECTS_BASE, TSE_SEQ_STRIP, TSE_SEQUENCE, TSE_SEQUENCE_DUP, TSE_SOME_ID, TSE_VIEW_COLLECTION_BASE, bConstraint::type, GpencilModifierData::type, ModifierData::type, Object::type, TreeStoreElem::type, and PointerRNA::type.
Referenced by merged_element_search_fn_recursive(), outliner_item_drag_drop_invoke(), and tselem_draw_icon().
Definition at line 2314 of file outliner_draw.cc.
References BKE_curve_type_get(), ED_file_extension_icon(), Object::empty_drawtype, Text::filepath, Text::flags, PartDeflect::forcefield, GS, id, ID_AC, ID_AR, ID_BR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD, ID_GR, ID_IM, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NLA, ID_NT, ID_OB, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SIM, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VO, ID_WO, ID_WS, Object::instance_collection, LA_AREA, LA_LOCAL, LA_SPOT, LA_SUN, LIB_TAG_MISSING, LIGHTPROBE_TYPE_CUBE, LIGHTPROBE_TYPE_GRID, LIGHTPROBE_TYPE_PLANAR, ID::name, ntree, OB_ARMATURE, OB_CAMERA, OB_CURVES, OB_CURVES_LEGACY, OB_DUPLICOLLECTION, OB_EMPTY, OB_EMPTY_IMAGE, OB_FONT, OB_GPENCIL, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SPEAKER, OB_SURF, OB_VOLUME, Object::pd, ID::tag, Object::transflag, TXT_ISMEM, Light::type, LightProbe::type, Object::type, bNodeTree::typeinfo, and bNodeTreeType::ui_icon.
Referenced by tree_element_get_icon().
int tree_element_id_type_to_index | ( | TreeElement * | te | ) |
Return the index to use based on the TreeElement ID and object type
We use a continuum of indices until we get to the object data-blocks and we then make room for the object types.
Definition at line 3069 of file outliner_draw.cc.
References BKE_idtype_idcode_to_index(), TreeStoreElem::id, TreeElement::idcode, INDEX_ID_GR, INDEX_ID_OB, OB_TYPE_MAX, TREESTORE, TSE_SOME_ID, Object::type, and TreeStoreElem::type.
Referenced by merged_element_search_fn_recursive(), merged_element_search_update_fn(), and outliner_draw_iconrow().
|
static |
Definition at line 2874 of file outliner_draw.cc.
References bTheme::collection_color, COLLECTION_COLOR_NONE, ThemeCollectionColor::color, color, Collection::color_tag, data, ICON_DEFAULT_HEIGHT, ID_IS_LINKED, outliner_collection_from_tree_element(), outliner_is_collection_tree_element(), tree_element_get_icon(), UI_BTYPE_LABEL, UI_GetTheme(), UI_icon_draw_ex(), UI_icon_get_theme_color(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), x, and y.
Referenced by outliner_draw_iconrow_doit(), and outliner_draw_tree_element().
|
static |
Collection properties called from the ViewLayer mode. Change the (non-excluded) collection children, and the objects nested to them all.
Definition at line 650 of file outliner_draw.cc.
References C, LayerCollection::collection, and outliner_collection_set_flag_recursive_fn().
Referenced by outliner_draw_restrictbuts().
|
static |
Layer collection properties called from the ViewLayer mode. Change the (non-excluded) collection children, and the objects nested to them all.
Definition at line 637 of file outliner_draw.cc.
References C, and outliner_collection_set_flag_recursive_fn().
Referenced by outliner_draw_restrictbuts().