102 *width = std::max(*width,
int(te->xend));
103 if (height !=
nullptr) {
133 const short id_type =
GS(id->
name);
157 ebone->flag &=
~flag;
189 if (pchan->drawflag & PCHAN_DRAW_HIDDEN) {
190 descendent.drawflag |= PCHAN_DRAW_HIDDEN;
193 descendent.drawflag &= ~PCHAN_DRAW_HIDDEN;
202 Bone *bone =
static_cast<Bone *
>(poin2);
273 const char *propname)
287 ID *
id = ob ? &ob->
id : &scene->
id;
288 StructRNA *struct_rna = ob ? &RNA_Object : &RNA_ObjectBase;
289 void *
data = ob ? (
void *)ob : (
void *)base;
298 ob_iter =
static_cast<Object *
>(ob_iter->id.next))
309 if (base_iter ==
nullptr) {
337 const char *propname =
static_cast<const char *
>(poin2);
346 Base *base =
static_cast<Base *
>(poin);
347 const char *propname =
static_cast<const char *
>(poin2);
389 if (!layer_collection) {
424 Collection *collection_iter = layer_collection ?
425 (collection ? layer_collection_iter->
collection :
nullptr) :
429 layer_collection_iter,
431 layer_or_collection_prop,
454 const bool value_cmp,
463 const Collection *collection_ensure_cmp = collection_cmp ? collection_cmp :
474 else if (collection_ensure == collection_ensure_cmp) {
481 if (value != value_cmp) {
488 if (value == value_cmp) {
497 Collection *collection_iter = layer_collection ?
498 (collection ? layer_collection_iter->
collection :
nullptr) :
504 layer_collection_cmp,
507 layer_or_collection_prop,
508 layer_collection_iter,
523 const char *propname,
527 const bool is_hide = strstr(propname,
"hide_") ||
STREQ(propname,
"exclude");
535 bool was_isolated = (value == is_hide);
540 layer_or_collection_prop,
541 top_layer_collection,
549 top_layer_collection,
551 layer_or_collection_prop,
560 top_layer_collection,
562 layer_or_collection_prop,
571 layer_or_collection_prop,
576 if (layer_collection) {
585 while (lc_parent != layer_collection) {
587 scene, lc_parent, collection ? lc_parent->
collection :
nullptr, &
ptr);
615 const char *propname)
625 if (!
ELEM(
true, do_isolate, extend)) {
630 ID *
id = collection ? &collection->
id : &scene->
id;
631 StructRNA *struct_rna = collection ? &RNA_Collection : &RNA_LayerCollection;
632 void *
data = collection ? (
void *)collection : (
void *)layer_collection;
640 if (layer_collection !=
nullptr) {
643 struct_rna = collection ? &RNA_Object : &RNA_ObjectBase;
652 layer_or_collection_prop,
661 layer_or_collection_prop,
680 const char *propname =
static_cast<const char *
>(poin2);
691 const char *propname =
static_cast<const char *
>(poin2);
693 C, layer_collection, layer_collection->
collection, propname);
703 const char *propname =
static_cast<const char *
>(poin2);
715 const char *undo_str =
nullptr;
722 auto id_rename_helper = [bmain, tselem, oldname]() ->
bool {
723 std::string new_name = tselem->
id->
name + 2;
732 if (id_rename_helper()) {
768 "Library path '%s' does not exist, correct this before saving",
774 "Library path '%s' is now valid, please reload the library",
783 switch (tselem->
type) {
795 if (id_rename_helper()) {
818 char newname[
sizeof(ebone->
name)];
838 char newname[
sizeof(bone->
name)];
860 char newname[
sizeof(pchan->
name)];
904 std::string new_name(node.
name());
905 node.set_name(oldname);
906 grease_pencil.rename_node(*bmain, node, new_name);
917 char newname[
sizeof(view_layer->
name)];
931 if (id_rename_helper()) {
1099 if (layer_collection !=
nullptr) {
1101 &scene->
id, &RNA_LayerCollection, layer_collection);
1105 if (layer_collection) {
1107 layer_collection_ptr, collection_ptr, props, props_active);
1160 } restrict_offsets = {0};
1161 int restrict_column_offset = 0;
1212 ICON_RESTRICT_RENDER_OFF,
1213 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1220 TIP_(
"Use view layer for rendering"));
1237 Base *base = (te->directdata) ? (
Base *)te->directdata :
1245 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1254 TIP_(
"Temporarily hide in viewport\n"
1255 " \u2022 Shift to set children"));
1270 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1279 TIP_(
"Disable selection in viewport\n"
1280 " \u2022 Shift to set children"));
1293 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1302 TIP_(
"Globally disable in viewports\n"
1303 " \u2022 Shift to set children"));
1316 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1325 TIP_(
"Globally disable in renders\n"
1326 " \u2022 Shift to set children"));
1344 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1370 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1391 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1420 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1429 TIP_(
"Restrict visibility in the 3D View\n"
1430 " \u2022 Shift to set children"));
1441 ICON_RESTRICT_SELECT_OFF,
1442 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1449 TIP_(
"Restrict selection in the 3D View\n"
1450 " \u2022 Shift to set children"));
1465 ICON_RESTRICT_VIEW_OFF,
1466 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1473 TIP_(
"Restrict visibility in the 3D View\n"
1474 " \u2022 Shift to set children"));
1485 ICON_RESTRICT_SELECT_OFF,
1486 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1493 TIP_(
"Restrict selection in the 3D View\n"
1494 " \u2022 Shift to set children"));
1501 ID *
id = tselem->
id;
1510 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1517 TIP_(
"Restrict visibility in the 3D View"));
1529 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1536 TIP_(
"Restrict editing of strokes and keyframes in this layer"));
1560 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1581 scene, te, &collection_ptr, &layer_collection_ptr, &props, &props_active))
1589 if (layer_collection !=
nullptr) {
1595 int(region->
v2d.
cur.
xmax) - restrict_offsets.enable,
1599 &layer_collection_ptr,
1617 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1621 &layer_collection_ptr,
1626 TIP_(
"Temporarily hide in viewport\n"
1627 " \u2022 Ctrl to isolate collection\n"
1628 " \u2022 Shift to set inside collections and objects"));
1632 (
char *)
"hide_viewport");
1644 int(region->
v2d.
cur.
xmax - restrict_offsets.holdout),
1648 &layer_collection_ptr,
1653 TIP_(
"Mask out objects in collection from view layer\n"
1654 " \u2022 Ctrl to isolate collection\n"
1655 " \u2022 Shift to set inside collections"));
1672 int(region->
v2d.
cur.
xmax - restrict_offsets.indirect_only),
1676 &layer_collection_ptr,
1681 TIP_(
"Objects in collection only contribute indirectly (through shadows and "
1682 "reflections) in the view layer\n"
1683 " \u2022 Ctrl to isolate collection\n"
1684 " \u2022 Shift to set inside collections"));
1688 (
char *)
"indirect_only");
1703 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1712 TIP_(
"Globally disable in viewports\n"
1713 " \u2022 Ctrl to isolate collection\n"
1714 " \u2022 Shift to set inside collections and objects"));
1715 if (layer_collection !=
nullptr) {
1719 (
char *)
"hide_viewport");
1725 (
char *)
"hide_viewport");
1738 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1747 TIP_(
"Globally disable in renders\n"
1748 " \u2022 Ctrl to isolate collection\n"
1749 " \u2022 Shift to set inside collections and objects"));
1750 if (layer_collection !=
nullptr) {
1754 (
char *)
"hide_render");
1771 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1780 TIP_(
"Disable selection in viewport\n"
1781 " \u2022 Ctrl to isolate collection\n"
1782 " \u2022 Shift to set inside collections and objects"));
1783 if (layer_collection !=
nullptr) {
1787 (
char *)
"hide_select");
1805 scene, te, &collection_ptr, &layer_collection_ptr, &props, &props_active);
1810 block, scene, view_layer, region, space_outliner, &te->subtree, props_active);
1825 ID *
id = tselem->
id;
1832 std::optional<StringRef> tip;
1852 TIP_(
"Number of users"));
1856 if (has_fake_user) {
1857 tip = is_linked ?
TIP_(
"Item is protected from deletion") :
1858 TIP_(
"Click to remove protection from deletion");
1862 tip = is_linked ?
TIP_(
"Item is not protected from deletion") :
1863 TIP_(
"Click to add protection from deletion");
1867 TIP_(
"Item has no users and will be removed") :
1868 TIP_(
"Item has no users and will be removed.\nClick to protect from deletion");
1895 if (!real_users && !has_fake_user) {
1896 uchar overlay_color[4];
1912 const float pad_y = 0.5f *
U.pixelsize;
1927 if (!override_elem) {
1951 StringRefNull op_label = override_op_elem->get_override_operation_label();
1977 (prop_type ==
PROP_ENUM) ? std::nullopt : std::optional(
""),
1993 block,
ptr, prop, ICON_NONE,
x + pad_x, te->ys + pad_y, item_max_width, item_height);
2002 if (!session_uid_a || !session_uid_b) {
2006 return session_uid_a == session_uid_b;
2041 const BIFIconID icon = is_system_override ? ICON_LIBRARY_DATA_OVERRIDE_NONEDITABLE :
2042 ICON_LIBRARY_DATA_OVERRIDE;
2045 "ED_OT_lib_id_override_editable_toggle",
2102 ptr = te_rna_prop->get_pointer_rna();
2103 prop = te_rna_prop->get_property_rna();
2148 ptr = te_rna_array_elem->get_pointer_rna();
2149 prop = te_rna_array_elem->get_property_rna();
2168 const float restrict_column_width,
2239 const bool object_data_shared = (ob->
data == tvc.
obact->
data);
2250 const bool lock_object_modes)
2284 TIP_(
"Another object has this shared data in edit mode"));
2289 bool draw_active_icon = ob->
mode == ob_active->
mode;
2295 if (!lock_object_modes && ob != ob_active && !(tvc.
ob_edit || tvc.
ob_pose)) {
2296 draw_active_icon =
false;
2299 const bool object_data_shared = (ob->
data == ob_active->
data);
2300 draw_active_icon = draw_active_icon || object_data_shared;
2304 if (draw_active_icon) {
2306 tip = object_data_shared ?
TIP_(
"Change the object in the current mode") :
2307 TIP_(
"Remove from the current mode");
2312 "Change the object in the current mode\n"
2313 " \u2022 Ctrl to add to the current mode");
2337 UI_but_disable(but,
"Cannot edit library or non-editable override data");
2395 const bool use_mode_column,
2399 const short mode_column_offset = (use_mode_column && (space_outliner->
outlinevis ==
SO_SCENES)) ?
2422 const bool use_mode_column)
2431 block, space_outliner, warning_msg, use_mode_column, te->
ys);
2448 return ICON_OUTLINER_OB_LIGHT;
2450 return ICON_OUTLINER_OB_MESH;
2452 return ICON_OUTLINER_OB_CAMERA;
2454 return ICON_OUTLINER_OB_CURVE;
2456 return ICON_OUTLINER_OB_META;
2458 return ICON_OUTLINER_OB_LATTICE;
2460 return ICON_OUTLINER_OB_ARMATURE;
2462 return ICON_OUTLINER_OB_FONT;
2464 return ICON_OUTLINER_OB_SURFACE;
2466 return ICON_OUTLINER_OB_SPEAKER;
2468 return ICON_OUTLINER_OB_LIGHTPROBE;
2470 return ICON_OUTLINER_OB_CURVES;
2472 return ICON_OUTLINER_OB_POINTCLOUD;
2474 return ICON_OUTLINER_OB_VOLUME;
2477 return ICON_OUTLINER_OB_GROUP_INSTANCE;
2480 return ICON_OUTLINER_OB_IMAGE;
2483 return ICON_OUTLINER_OB_FORCE_FIELD;
2486 return ICON_OUTLINER_OB_EMPTY;
2489 return ICON_OUTLINER_OB_GREASEPENCIL;
2498 switch (
short(
GS(id->
name))) {
2500 return ICON_SCENE_DATA;
2502 return ICON_OUTLINER_DATA_MESH;
2507 return ICON_OUTLINER_DATA_FONT;
2509 return ICON_OUTLINER_DATA_SURFACE;
2511 return ICON_OUTLINER_DATA_CURVE;
2516 return ICON_OUTLINER_DATA_META;
2518 return ICON_OUTLINER_DATA_LATTICE;
2523 return ICON_LIGHT_POINT;
2525 return ICON_LIGHT_SUN;
2527 return ICON_LIGHT_SPOT;
2529 return ICON_LIGHT_AREA;
2531 return ICON_OUTLINER_DATA_LIGHT;
2535 return ICON_MATERIAL_DATA;
2537 return ICON_TEXTURE_DATA;
2539 return ICON_IMAGE_DATA;
2542 return ICON_OUTLINER_DATA_SPEAKER;
2544 return ICON_OUTLINER_DATA_ARMATURE;
2546 return ICON_OUTLINER_DATA_CAMERA;
2548 return ICON_SHAPEKEY_DATA;
2550 return ICON_WORLD_DATA;
2558 return ICON_FILE_TEXT;
2564 return ICON_OUTLINER_COLLECTION;
2566 return ICON_OUTLINER_DATA_CURVES;
2568 return ICON_OUTLINER_DATA_POINTCLOUD;
2570 return ICON_OUTLINER_DATA_VOLUME;
2573 return ICON_LIBRARY_DATA_BROKEN;
2576 return ICON_PACKAGE;
2578 else if (((
Library *)
id)->runtime->parent) {
2579 return ICON_LIBRARY_DATA_INDIRECT;
2582 return ICON_LIBRARY_DATA_DIRECT;
2585 return ICON_LINE_DATA;
2588 return ICON_OUTLINER_DATA_GREASEPENCIL;
2593 return ICON_LIGHTPROBE_SPHERE;
2595 return ICON_LIGHTPROBE_PLANE;
2597 return ICON_LIGHTPROBE_VOLUME;
2599 return ICON_LIGHTPROBE_SPHERE;
2603 return ICON_BRUSH_DATA;
2606 return ICON_WORKSPACE;
2608 return ICON_MOD_MASK;
2615 return ICON_SEQUENCE;
2617 return ICON_CURVE_BEZCURVE;
2619 return ICON_PARTICLES;
2623 return ICON_FILE_FONT;
2634 switch (tselem->
type) {
2636 data.icon = ICON_ACTION_SLOT;
2639 data.icon = ICON_ANIM_DATA;
2642 data.icon = ICON_NLA;
2645 data.icon = ICON_NLA;
2648 data.icon = ICON_ACTION;
2651 data.icon = ICON_DRIVER;
2654 data.icon = ICON_GROUP_VERTEX;
2657 data.icon = ICON_GROUP_VERTEX;
2661 data.icon = ICON_BONE_DATA;
2664 data.icon = ICON_CONSTRAINT;
2665 data.drag_id = tselem->
id;
2669 data.drag_id = tselem->
id;
2672 data.icon = ICON_CON_CAMERASOLVER;
2675 data.icon = ICON_CON_FOLLOWTRACK;
2678 data.icon = ICON_CON_OBJECTSOLVER;
2681 data.icon = ICON_CON_LOCLIKE;
2684 data.icon = ICON_CON_ROTLIKE;
2687 data.icon = ICON_CON_SIZELIKE;
2690 data.icon = ICON_CON_TRANSLIKE;
2693 data.icon = ICON_CON_DISTLIMIT;
2696 data.icon = ICON_CON_LOCLIMIT;
2699 data.icon = ICON_CON_ROTLIMIT;
2702 data.icon = ICON_CON_SIZELIMIT;
2705 data.icon = ICON_CON_SAMEVOL;
2708 data.icon = ICON_CON_TRANSFORM;
2711 data.icon = ICON_CON_TRANSFORM_CACHE;
2714 data.icon = ICON_CON_CLAMPTO;
2717 data.icon = ICON_CON_TRACKTO;
2720 data.icon = ICON_CON_KINEMATIC;
2723 data.icon = ICON_CON_LOCKTRACK;
2726 data.icon = ICON_CON_SPLINEIK;
2729 data.icon = ICON_CON_STRETCHTO;
2732 data.icon = ICON_CON_TRACKTO;
2735 data.icon = ICON_CON_ACTION;
2738 data.icon = ICON_CON_ARMATURE;
2741 data.icon = ICON_CON_CHILDOF;
2744 data.icon = ICON_CON_FLOOR;
2747 data.icon = ICON_CON_FOLLOWPATH;
2750 data.icon = ICON_CON_PIVOT;
2753 data.icon = ICON_CON_SHRINKWRAP;
2756 data.icon = ICON_CON_GEOMETRYATTRIBUTE;
2760 data.icon = ICON_DOT;
2766 data.icon = ICON_MODIFIER_DATA;
2767 data.drag_id = tselem->
id;
2775 data.icon = ICON_LIBRARY_DATA_OVERRIDE;
2778 data.icon = ICON_OBJECT_DATA;
2781 data.icon = ICON_PARTICLES;
2785 data.drag_id = tselem->
id;
2790 data.icon = modifier_type->icon;
2793 data.icon = ICON_DOT;
2798 data.icon = ICON_NODETREE;
2801 data.icon = ICON_ARMATURE_DATA;
2804 data.icon = ICON_BONE_DATA;
2807 data.icon = ICON_RENDERLAYERS;
2810 data.icon = ICON_OUTLINER_OB_GROUP_INSTANCE;
2813 data.icon = ICON_RENDER_RESULT;
2817 data.icon = ICON_GROUP_BONE;
2823 data.icon = ICON_SCENE_DATA;
2826 data.icon = ICON_TRACKER;
2829 data.icon = ICON_MOD_MASK;
2832 data.icon = ICON_FILE_MOVIE;
2835 data.icon = ICON_SOUND;
2838 data.icon = ICON_FILE_IMAGE;
2842 data.icon = ICON_COLOR;
2845 data.icon = ICON_FONT_DATA;
2857 data.icon = ICON_SHADERFX;
2862 data.icon = ICON_ARROW_LEFTRIGHT;
2865 data.icon = ICON_SEQ_STRIP_META;
2868 data.icon = ICON_DOT;
2874 data.icon = ICON_LIBRARY_DATA_DIRECT;
2877 data.icon = ICON_SEQ_STRIP_DUPLICATE;
2884 ID *
id =
static_cast<ID *
>(
ptr.data);
2889 data.icon = ICON_PACKAGE;
2905 data.drag_id = tselem->
id;
2909 data.icon = ICON_OUTLINER_COLLECTION;
2913 data.icon = ICON_OUTLINER_DATA_GP_LAYER;
2920 data.icon = ICON_OUTLINER_DATA_GP_LAYER;
2925 data.icon = ICON_GREASEPENCIL_LAYER_GROUP;
2934 data.drag_id = tselem->
id;
2935 data.icon = ICON_SHADERFX;
2938 data.icon = ICON_DOT;
2942 else if (tselem->
id) {
2943 data.drag_id = tselem->
id;
2968 const bool is_clickable,
2969 const int num_elements)
2972 if (
data.icon == 0) {
2981 if (!is_clickable ||
x >= xmax || is_collection) {
2988 if (is_collection) {
2993 ICON_COLLECTION_COLOR_01 + collection->
color_tag,
3051 icon_color[3] = 0.4f;
3053 icon_border[3] = 0.2f;
3061 const float icon_color[4],
3062 const float icon_border[4])
3082 const int num_elements)
3087 float icon_color[4], icon_border[4];
3091 icon_border[3] = 0.3f;
3106 block, xmax,
float(*offsx),
float(ys), tselem, te, alpha_fac,
false, num_elements);
3111 if (num_elements > 1) {
3164 bool in_bone_hierarchy,
3165 const bool is_grease_pencil_node_hierarchy,
3184 (is_grease_pencil_node_hierarchy && is_grease_pencil_node) ||
3185 (in_bone_hierarchy && is_bone))
3189 if (te->idcode ==
ID_OB) {
3243 const bool is_root_level_bone = is_bone && (level == 0);
3244 in_bone_hierarchy |= is_root_level_bone;
3247 const bool in_grease_pencil_node_hierarchy = is_grease_pencil_node_hierarchy ||
3248 (is_grease_pencil_node && level == 0);
3250 in_bone_hierarchy || in_grease_pencil_node_hierarchy)
3263 in_grease_pencil_node_hierarchy,
3276 for (
int j = 0; j < num_subtypes; j++) {
3277 const int index = index_base + j;
3298 if ((te->flag & TE_ICONROW) == 0 && (te->flag & TE_ICONROW_MERGED) == 0) {
3319 const bool is_visible = (base !=
nullptr) &&
3332 switch (tselem->
type) {
3337 return !is_visible || is_excluded;
3342 return !node.is_visible();
3364 bool draw_grayed_out,
3367 const float restrict_column_width,
3374 uchar text_color[4];
3376 float icon_bgcolor[4], icon_border[4];
3388 if (restrict_column_width > 0) {
3389 xmax -= restrict_column_width +
UI_UNIT_X;
3401 const bool is_selected = (base !=
nullptr) && ((base->
flag &
BASE_SELECTED) != 0);
3403 if (ob == tvc.
obact) {
3408 if (ob == tvc.
obact) {
3411 text_color[3] = 255;
3416 text_color[3] = 255;
3423 icon_border[3] = 0.3f;
3429 icon_bgcolor[3] = 0.2f;
3433 text_color[3] = 255;
3442 text_color[3] = 255;
3450 float(startx) + offsx + 2.0f *
UI_UNIT_X,
3463 int icon_x = startx;
3468 float(icon_x) + 2 * ufac,
float(*starty) + 1 * ufac, ICON_DOWNARROW_HLT, alpha_fac);
3472 float(icon_x) + 2 * ufac,
float(*starty) + 1 * ufac, ICON_RIGHTARROW, alpha_fac);
3481 float(startx) + offsx,
3500 if (lib_icon != ICON_NONE) {
3502 float(startx) + offsx + 2 * ufac,
float(*starty) + 2 * ufac, lib_icon, alpha_fac);
3510 float(startx) + offsx + 2 * ufac,
float(*starty) + 2 * ufac, ICON_EXPORT, alpha_fac);
3521 text_color[3] = 255;
3523 text_color[3] *= alpha_fac;
3537 int tempx = startx + offsx;
3564 te->
xend = startx + offsx;
3572 bool draw_children_grayed_out = draw_grayed_out || (ten->flag &
TE_DRAGGING);
3579 draw_children_grayed_out,
3582 restrict_column_width,
3604 const uint pos,
const int x,
const int y1,
const int y2,
const bool draw_dashed)
3607 const short line_padding =
UI_UNIT_Y / 4.0f;
3610 immUniform1f(
"udash_factor", draw_dashed ? 0.5f : 1.0f);
3626 bool draw_grayed_out,
3633 bool draw_hierarchy_line;
3634 bool is_object_line;
3637 draw_hierarchy_line =
false;
3638 is_object_line =
false;
3645 draw_hierarchy_line =
true;
3654 draw_hierarchy_line =
true;
3655 is_object_line =
true;
3663 draw_hierarchy_line =
true;
3678 if (draw_hierarchy_line) {
3680 uchar line_color[4];
3688 line_color[3] = alpha_fac;
3707 float viewport_size[4];
3718 pos, space_outliner, lb, tvc, startx,
col,
false, starty);
3737 format,
"pos", blender::gpu::VertAttrType::SFLOAT_32_32);
3751 format,
"pos", blender::gpu::VertAttrType::SFLOAT_32_32);
3768 const float col_selection[4],
3769 const float col_active[4],
3770 const float col_highlight[4],
3771 const float col_searchmatch[4],
3781 const int start_y = *io_start_y;
3798 float col_active_outline[4];
3810 float col_outline[4];
3815 rect.
ymin = rect.
ymax - (2.0f *
U.pixelsize);
3820 rect.
ymax = rect.
ymin + (2.0f *
U.pixelsize);
3851 const float col_highlight[4] = {1.0f, 1.0f, 1.0f, 0.13f};
3852 float col_selection[4], col_active[4], col_searchmatch[4];
3855 col_selection[3] = 1.0f;
3857 col_active[3] = 1.0f;
3859 col_searchmatch[3] = 0.5f;
3877 const float right_column_width,
3878 const bool use_mode_column,
3879 const bool use_warning_column,
3884 short columns_offset = use_mode_column ?
UI_UNIT_X : 0;
3894 if (use_warning_column) {
3907 int scissor[4] = {0};
3914 if (right_column_width > 0.0f) {
3926 int startx = columns_offset +
UI_UNIT_X / 2 - (
U.pixelsize + 1) / 2;
3933 int startx = columns_offset;
3948 if (right_column_width > 0.0f) {
3967 float col_alternating[4];
3971 const float x1 = 0.0f, x2 = region->
v2d.
cur.
xmax;
3972 float y1 = ystart, y2;
4000 float right_column_width)
4006 return max_tree_width + right_column_width;
4013 float right_column_width)
4015 int sizex =
outliner_width(space_outliner, tree_width, right_column_width);
4016 int sizey = tree_height;
4055 mainvar, workspace, tvc.
scene, tvc.
view_layer, space_outliner, region);
4098 int tree_width, tree_height;
4118 const int x = region->
v2d.
cur.
xmax - right_column_width;
4128 mainvar, block, region, space_outliner, &space_outliner->
tree,
x);
4131 else if (right_column_width > 0.0f) {
4140 &space_outliner->
tree,
4145 if (use_mode_column) {
4150 if (use_warning_column) {
4166 region, space_outliner, tree_width, tree_height, right_column_width);
Functions to deal with Armatures.
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
void ANIM_armature_bonecoll_name_set(bArmature *armature, BoneCollection *bcoll, const char *name)
Functions to insert, delete or modify keyframes.
Blender kernel action and pose functionality.
bool BKE_collection_has_collection(const Collection *parent, const Collection *collection)
WorkSpace * CTX_wm_workspace(const bContext *C)
ReportList * CTX_wm_reports(const bContext *C)
SpaceOutliner * CTX_wm_space_outliner(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
Main * CTX_data_main(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
wmMsgBus * CTX_wm_message_bus(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
void BKE_gpencil_layer_active_set(struct bGPdata *gpd, struct bGPDlayer *active)
Low-level operations for grease pencil.
int BKE_idtype_idcode_to_index(short idcode)
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
void BKE_main_collection_sync_remap(const Main *bmain)
void BKE_view_layer_rename(Main *bmain, Scene *scene, ViewLayer *view_layer, const char *newname)
bool BKE_layer_collection_has_layer_collection(LayerCollection *lc_parent, LayerCollection *lc_child)
void BKE_view_layer_need_resync_tag(ViewLayer *view_layer)
Base * BKE_view_layer_base_find(ViewLayer *view_layer, Object *ob)
bool BKE_lib_override_library_is_system_defined(const Main *bmain, const ID *id)
void BKE_library_filepath_set(Main *bmain, Library *lib, const char *filepath)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
General operations, lookup, etc. for blender objects.
bool BKE_object_is_in_editmode(const Object *ob)
bool BKE_object_data_is_in_editmode(const Object *ob, const ID *id)
bool BKE_object_is_child_recursive(const Object *ob_parent, const Object *ob_child)
struct ParticleSystem * psys_get_current(struct Object *ob)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
float BKE_scene_frame_get(const Scene *scene)
File and directory operations.
int BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
MINLINE int round_fl_to_int(float a)
MINLINE int max_ii(int a, int b)
MINLINE void copy_v4_v4_uchar(unsigned char r[4], const unsigned char a[4])
MINLINE void copy_v3_v3(float r[3], const float a[3])
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
void BLI_rctf_init(struct rctf *rect, float xmin, float xmax, float ymin, float ymax)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
void BLI_str_format_integer_unit(char dst[BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE], int number_to_format) ATTR_NONNULL(1)
char * STRNCPY(char(&dst)[N], const char *src)
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
#define STRNCPY_UTF8(dst, src)
void BLI_uniquename(const struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
#define CTX_N_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
void DEG_id_tag_update(ID *id, unsigned int flags)
void DEG_relations_tag_update(Main *bmain)
#define ID_FAKE_USERS(id)
#define ID_IS_OVERRIDE_LIBRARY_REAL(_id)
#define ID_IS_LINKED(_id)
#define ID_IS_EDITABLE(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
@ LIBOVERRIDE_FLAG_SYSTEM_DEFINED
@ LIBRARY_FLAG_IS_ARCHIVE
Object groups, one object can be in many groups at once.
@ CONSTRAINT_TYPE_TRACKTO
@ CONSTRAINT_TYPE_CHILDOF
@ CONSTRAINT_TYPE_TRANSFORM
@ CONSTRAINT_TYPE_FOLLOWTRACK
@ CONSTRAINT_TYPE_OBJECTSOLVER
@ CONSTRAINT_TYPE_ARMATURE
@ CONSTRAINT_TYPE_LOCLIKE
@ CONSTRAINT_TYPE_SHRINKWRAP
@ CONSTRAINT_TYPE_ROTLIMIT
@ CONSTRAINT_TYPE_CAMERASOLVER
@ CONSTRAINT_TYPE_GEOMETRY_ATTRIBUTE
@ CONSTRAINT_TYPE_ROTLIKE
@ CONSTRAINT_TYPE_SPLINEIK
@ CONSTRAINT_TYPE_KINEMATIC
@ CONSTRAINT_TYPE_DISTLIMIT
@ CONSTRAINT_TYPE_TRANSLIKE
@ CONSTRAINT_TYPE_LOCLIMIT
@ CONSTRAINT_TYPE_CLAMPTO
@ CONSTRAINT_TYPE_LOCKTRACK
@ CONSTRAINT_TYPE_SIZELIMIT
@ CONSTRAINT_TYPE_FOLLOWPATH
@ CONSTRAINT_TYPE_STRETCHTO
@ CONSTRAINT_TYPE_SIZELIKE
@ CONSTRAINT_TYPE_SAMEVOL
@ CONSTRAINT_TYPE_DAMPTRACK
@ CONSTRAINT_TYPE_TRANSFORM_CACHE
@ LAYER_COLLECTION_EXCLUDE
@ BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT
@ LAYER_COLLECTION_VISIBLE_VIEW_LAYER
Object is a sort of wrapper for general info.
#define OB_DATA_SUPPORT_EDITMODE(_type)
@ TSE_LIBRARY_OVERRIDE_OPERATION
@ TSE_VIEW_COLLECTION_BASE
@ TSE_LIBRARY_OVERRIDE_BASE
@ TSE_SCENE_COLLECTION_BASE
@ TSE_GPENCIL_EFFECT_BASE
@ TSE_BONE_COLLECTION_BASE
#define BASE_SELECTED(v3d, base)
@ STRIP_TYPE_GAUSSIAN_BLUR
@ SO_LIB_OVERRIDE_VIEW_HIERARCHIES
@ SO_LIB_OVERRIDE_VIEW_PROPERTIES
@ SO_RESTRICT_INDIRECT_ONLY
@ SO_FILTER_NO_VIEW_LAYERS
@ SO_FILTER_NO_COLLECTION
int ED_file_extension_icon(const char *path)
bool ED_outliner_select_sync_is_dirty(const bContext *C)
void ED_outliner_select_sync_flag_outliners(const bContext *C)
void ED_undo_push(bContext *C, const char *str)
@ GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR
@ GPU_SHADER_3D_UNIFORM_COLOR
void GPU_line_width(float width)
void GPU_blend(GPUBlend blend)
void GPU_scissor(int x, int y, int width, int height)
void GPU_viewport_size_get_f(float coords[4])
void GPU_scissor_get(int coords[4])
void UI_but_func_set(uiBut *but, std::function< void(bContext &)> func)
void UI_but_flag_disable(uiBut *but, int flag)
void UI_but_disable(uiBut *but, const char *disabled_hint)
void UI_draw_roundbox_4fv(const rctf *rect, bool filled, float rad, const float col[4])
void UI_block_emboss_set(uiBlock *block, blender::ui::EmbossType emboss)
uiBut * uiDefIconButBitI(uiBlock *block, ButType type, int bit, int retval, int icon, int x, int y, short width, short height, int *poin, float min, float max, std::optional< blender::StringRef > tip)
void UI_fontstyle_draw_simple(const uiFontStyle *fs, float x, float y, const char *str, const uchar col[4])
@ UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE
uiBlock * UI_block_begin(const bContext *C, ARegion *region, std::string name, blender::ui::EmbossType emboss)
uiBut * uiDefIconBut(uiBlock *block, uiButTypeWithPointerType but_and_ptr_type, int retval, int icon, int x, int y, short width, short height, void *poin, float min, float max, std::optional< blender::StringRef > tip)
void UI_draw_roundbox_4fv_ex(const rctf *rect, const float inner1[4], const float inner2[4], float shade_dir, const float outline[4], float outline_width, float rad)
std::optional< int64_t > UI_but_context_int_get(const uiBut *but, blender::StringRef name)
uiBut * uiDefIconButBitS(uiBlock *block, ButType type, int bit, int retval, int icon, int x, int y, short width, short height, short *poin, float min, float max, std::optional< blender::StringRef > tip)
void UI_but_drawflag_enable(uiBut *but, int flag)
void uiDefAutoButsArrayR(uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const int icon, const int x, const int y, const int tot_width, const int height)
void UI_draw_roundbox_corner_set(int type)
void UI_but_func_identity_compare_set(uiBut *but, uiButIdentityCompareFunc cmp_fn)
uiBut * uiDefIconButO(uiBlock *block, ButType type, blender::StringRefNull opname, blender::wm::OpCallContext opcontext, int icon, int x, int y, short width, short height, std::optional< blender::StringRef > tip)
void UI_but_context_int_set(uiBlock *block, uiBut *but, blender::StringRef name, int64_t value)
uiBut * uiDefAutoButR(uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, int index, std::optional< blender::StringRef > name, int icon, int x, int y, int width, int height)
uiBut * uiDefIconButR_prop(uiBlock *block, ButType type, int retval, int icon, int x, int y, short width, short height, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, std::optional< blender::StringRef > tip)
void UI_but_func_rename_set(uiBut *but, uiButHandleRenameFunc func, void *arg1)
void UI_block_draw(const bContext *C, uiBlock *block)
void UI_but_context_ptr_set(uiBlock *block, uiBut *but, blender::StringRef name, const PointerRNA *ptr)
void UI_but_icon_indicator_set(uiBut *but, const char *string)
int UI_fontstyle_string_width(const uiFontStyle *fs, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
bool UI_but_active_only(const bContext *C, ARegion *region, uiBlock *block, uiBut *but)
void UI_but_label_alpha_factor_set(uiBut *but, float alpha_factor)
void UI_but_icon_indicator_color_set(uiBut *but, const uchar color[4])
void UI_block_flag_enable(uiBlock *block, int flag)
void UI_draw_roundbox_aa(const rctf *rect, bool filled, float rad, const float color[4])
void UI_block_end(const bContext *C, uiBlock *block)
uiBut * uiDefBut(uiBlock *block, uiButTypeWithPointerType but_and_ptr_type, int retval, blender::StringRef str, int x, int y, short width, short height, void *poin, float min, float max, std::optional< blender::StringRef > tip)
void UI_but_flag_enable(uiBut *but, int flag)
#define ICON_DEFAULT_HEIGHT
void UI_icon_text_overlay_init_from_count(IconTextOverlay *text_overlay, const int icon_indicator_number)
bool UI_icon_get_theme_color(int icon_id, unsigned char color[4])
void UI_icon_draw_alpha(float x, float y, int icon_id, float alpha)
int UI_icon_from_library(const ID *id)
int UI_icon_from_object_mode(int mode)
void UI_icon_draw_ex(float x, float y, int icon_id, float aspect, float alpha, float desaturate, const uchar mono_color[4], bool mono_border, const IconTextOverlay *text_overlay, const bool inverted=false)
void UI_GetThemeColor3fv(int colorid, float col[3])
void UI_GetThemeColorBlend3ubv(int colorid1, int colorid2, float fac, unsigned char col[3])
void UI_GetThemeColorBlend4f(int colorid1, int colorid2, float fac, float r_col[4])
void UI_GetThemeColor3ubv(int colorid, unsigned char col[3])
void UI_GetThemeColor4fv(int colorid, float col[4])
void UI_GetThemeColorShade4fv(int colorid, int offset, float col[4])
void UI_GetThemeColor4ubv(int colorid, unsigned char col[4])
#define V2D_SCROLL_HEIGHT
void UI_view2d_totRect_set(View2D *v2d, int width, int height)
void UI_view2d_view_ortho(const View2D *v2d)
#define ND_RENDER_OPTIONS
#define ND_BONE_COLLECTION
#define ND_SPACE_OUTLINER
void ED_armature_bone_rename(Main *bmain, bArmature *arm, const char *oldnamep, const char *newnamep)
bool ED_armature_ebone_is_child_recursive(EditBone *ebone_parent, EditBone *ebone_child)
BMesh const char void * data
constexpr bool is_empty() const
int64_t num_direct_nodes() const
const LayerGroup & as_group() const
const LayerGroup * parent_group() const
virtual StringRefNull get_warning() const
PointerRNA override_rna_ptr
PropertyRNA & override_rna_prop
const PointerRNA & get_pointer_rna() const
StripType get_strip_type() const
bool ED_id_rename(Main &bmain, ID &id, blender::StringRefNull name)
void pose_bone_descendent_iterator(bPose &pose, bPoseChannel &pose_bone, FunctionRef< void(bPoseChannel &child_bone)> callback)
bool autokeyframe_property(bContext *C, Scene *scene, PointerRNA *ptr, PropertyRNA *prop, int rnaindex, float cfra, bool only_if_property_keyed)
void all_open(const SpaceOutliner &space_outliner, const VisitorFn visitor)
void all(const SpaceOutliner &space_outliner, const VisitorFn visitor)
static void outliner_collection_set_flag_recursive_fn(bContext *C, LayerCollection *layer_collection, Collection *collection, const char *propname)
static void outliner_tree_dimensions_impl(SpaceOutliner *space_outliner, ListBase *lb, int *width, int *height)
static void outliner_restrict_properties_enable_layer_collection_set(PointerRNA *layer_collection_ptr, PointerRNA *collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static void restrictbutton_gp_layer_flag_fn(bContext *C, void *poin, void *)
eOLDrawState tree_element_type_active_state_get(const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
static void outliner_draw_warning_column(uiBlock *block, const SpaceOutliner *space_outliner, const bool use_mode_column)
static StringRefNull outliner_draw_get_warning_tree_element(const SpaceOutliner &space_outliner, const TreeElement *te)
static bool is_object_data_in_editmode(const ID *id, const Object *obact)
static void outliner_icon_background_colors(float icon_color[4], float icon_border[4])
bool outliner_is_collection_tree_element(const TreeElement *te)
@ TE_CHILD_NOT_IN_COLLECTION
@ TE_PRETEND_HAS_CHILDREN
static void outliner_update_viewable_area(ARegion *region, SpaceOutliner *space_outliner, int tree_width, int tree_height, float right_column_width)
static bool subtree_contains_object(ListBase *lb)
static void outliner_draw_active_indicator(const float minx, const float miny, const float maxx, const float maxy, const float icon_color[4], const float icon_border[4])
static void outliner_draw_restrictbuts(uiBlock *block, Scene *scene, ViewLayer *view_layer, ARegion *region, SpaceOutliner *space_outliner, ListBase *lb, RestrictPropertiesActive props_active_parent)
float outliner_right_columns_width(const SpaceOutliner *space_outliner)
static void outliner_draw_highlights(const ARegion *region, const SpaceOutliner *space_outliner, const float col_selection[4], const float col_active[4], const float col_highlight[4], const float col_searchmatch[4], int, int *io_start_y)
static int outliner_data_api_buttons_start_x(int max_tree_width)
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)
static void outliner_draw_tree(uiBlock *block, const TreeViewContext &tvc, ARegion *region, SpaceOutliner *space_outliner, const float right_column_width, const bool use_mode_column, const bool use_warning_column, TreeElement **te_edit)
static void namebutton_fn(bContext *C, void *tsep, char *oldname)
void tree_element_activate(bContext *C, const TreeViewContext &tvc, TreeElement *te, eOLSetState set, bool handle_all_types)
TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
static void outliner_draw_hierarchy_lines(SpaceOutliner *space_outliner, ListBase *lb, const TreeViewContext &tvc, int startx, int *starty)
static void outliner__object_set_flag_recursive_fn(bContext *C, void *poin, void *poin2)
static bool outliner_collection_is_isolated(Scene *scene, const LayerCollection *layer_collection_cmp, const Collection *collection_cmp, const bool value_cmp, PropertyRNA *layer_or_collection_prop, LayerCollection *layer_collection, Collection *collection)
static void outliner_draw_hierarchy_lines_recursive(uint pos, SpaceOutliner *space_outliner, ListBase *lb, const TreeViewContext &tvc, int startx, const uchar col[4], bool draw_grayed_out, int *starty)
static bool outliner_but_identity_cmp_context_id_fn(const uiBut *a, const uiBut *b)
static void restrictbutton_bone_visibility_fn(bContext *C, void *poin, void *poin2)
static void restrictbutton_recursive_bone(Bone *bone_parent, int flag, bool set_flag)
static void outliner_object_set_flag_recursive_fn(bContext *C, Base *base, Object *ob, const char *propname)
void outliner_item_mode_toggle(bContext *C, const TreeViewContext &tvc, TreeElement *te, bool do_extend)
static void outliner_draw_tree_element(uiBlock *block, const uiFontStyle *fstyle, const TreeViewContext &tvc, ARegion *region, SpaceOutliner *space_outliner, TreeElement *te, bool draw_grayed_out, int startx, int *starty, const float restrict_column_width, TreeElement **te_edit)
static void outliner_collection_set_flag_recursive(Scene *scene, ViewLayer *view_layer, LayerCollection *layer_collection, Collection *collection, PropertyRNA *layer_or_collection_prop, PropertyRNA *base_or_object_prop, const bool value)
void outliner_viewcontext_init(const bContext *C, TreeViewContext *tvc)
bool outliner_is_element_in_view(const TreeElement *te, const View2D *v2d)
static void restrictbutton_ebone_select_fn(bContext *C, void *poin, void *poin2)
Collection * outliner_collection_from_tree_element(const TreeElement *te)
int tree_element_id_type_to_index(TreeElement *te)
static void outliner_layer_or_collection_pointer_create(Scene *scene, LayerCollection *layer_collection, Collection *collection, PointerRNA *ptr)
static void view_layer__layer_collection_set_flag_recursive_fn(bContext *C, void *poin, void *poin2)
static void outliner_draw_separator(ARegion *region, const int x)
static void outliner_set_subtree_coords(const TreeElement *te)
static int outliner_width(SpaceOutliner *space_outliner, int max_tree_width, float right_column_width)
static StringRefNull outliner_draw_get_warning_tree_element_subtree(const TreeElement *parent_te)
static void outliner_draw_mode_column(uiBlock *block, TreeViewContext &tvc, SpaceOutliner *space_outliner)
TreeElementT * tree_element_cast(const TreeElement *te)
static void outliner_base_or_object_pointer_create(Scene *scene, ViewLayer *view_layer, Collection *collection, Object *ob, PointerRNA *ptr)
static void outliner_draw_warning_tree_element(uiBlock *block, const SpaceOutliner *space_outliner, const StringRef warning_msg, const bool use_mode_column, const int te_ys)
static void outliner_back(ARegion *region)
static bool tselem_draw_icon(uiBlock *block, int xmax, float x, float y, TreeStoreElem *tselem, TreeElement *te, float alpha, const bool is_clickable, const int num_elements)
void outliner_sync_selection(const bContext *C, const TreeViewContext &tvc, SpaceOutliner *space_outliner)
TreeElement * outliner_find_tree_element(ListBase *lb, const TreeStoreElem *store_elem)
static void scenes__collection_set_flag_recursive_fn(bContext *C, void *poin, void *poin2)
static void outliner_mode_toggle_fn(bContext *C, void *tselem_poin, void *)
static void outliner_restrict_properties_enable_collection_set(PointerRNA *collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static void restrictbutton_bone_select_fn(bContext *C, void *poin, void *poin2)
static void outliner_draw_overrides_rna_buts(uiBlock *block, const ARegion *region, const SpaceOutliner *space_outliner, const ListBase *lb, const int x)
static void outliner_buttons(const bContext *C, uiBlock *block, ARegion *region, const float restrict_column_width, TreeElement *te)
static void restrictbutton_r_lay_fn(bContext *C, void *poin, void *)
static void outliner_draw_hierarchy_line(const uint pos, const int x, const int y1, const int y2, const bool draw_dashed)
void outliner_tree_dimensions(SpaceOutliner *space_outliner, int *r_width, int *r_height)
static bool element_should_draw_faded(const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
static void restrictbutton_ebone_visibility_fn(bContext *C, void *poin, void *poin2)
static void outliner_draw_userbuts(uiBlock *block, const ARegion *region, const SpaceOutliner *space_outliner)
bool outliner_has_element_warnings(const SpaceOutliner &space_outliner)
static void view_layer__collection_set_flag_recursive_fn(bContext *C, void *poin, void *poin2)
static void outliner__base_set_flag_recursive_fn(bContext *C, void *poin, void *poin2)
bool outliner_shows_mode_column(const SpaceOutliner &space_outliner)
static void outliner_draw_iconrow_doit(uiBlock *block, TreeElement *te, int xmax, int *offsx, int ys, float alpha_fac, const eOLDrawState active, const int num_elements)
eOLDrawState tree_element_active_state_get(const TreeViewContext &tvc, const TreeElement *te, const TreeStoreElem *tselem)
static void outliner_draw_overrides_restrictbuts(Main *bmain, uiBlock *block, const ARegion *region, const SpaceOutliner *space_outliner, const ListBase *lb, const int x)
void outliner_build_tree(Main *mainvar, WorkSpace *workspace, Scene *scene, ViewLayer *view_layer, SpaceOutliner *space_outliner, ARegion *region)
static void outliner_draw_struct_marks(ARegion *region, SpaceOutliner *space_outliner, ListBase *lb, int *starty)
static void outliner_draw_mode_column_toggle(uiBlock *block, const TreeViewContext &tvc, TreeElement *te, const bool lock_object_modes)
void draw_outliner(const bContext *C, bool do_rebuild)
static void restrictbutton_id_user_toggle(bContext *, void *poin, void *)
static void outliner_draw_iconrow(uiBlock *block, const uiFontStyle *fstyle, const TreeViewContext &tvc, SpaceOutliner *space_outliner, ListBase *lb, int level, int xmax, int *offsx, int ys, float alpha_fac, bool in_bone_hierarchy, const bool is_grease_pencil_node_hierarchy, MergedIconRow *merged)
static void outliner_draw_rnabuts(uiBlock *block, ARegion *region, SpaceOutliner *space_outliner, int sizex)
static void restrictbutton_recursive_ebone(bArmature *arm, EditBone *ebone_parent, int flag, bool set_flag)
static bool outliner_restrict_properties_collection_set(Scene *scene, TreeElement *te, PointerRNA *collection_ptr, PointerRNA *layer_collection_ptr, RestrictProperties *props, RestrictPropertiesActive *props_active)
static BIFIconID tree_element_get_icon_from_id(const ID *id)
int ED_outliner_icon_from_id(const ID &id)
bool ED_outliner_support_searching(const SpaceOutliner *space_outliner)
#define SEARCHING_OUTLINER(sov)
#define OL_RNA_COL_SPACEX
#define OL_TOG_USER_BUTS_USERS
#define TSELEM_OPEN(telm, sv)
PropertyRNA * RNA_struct_type_find_property(StructRNA *srna, const char *identifier)
bool RNA_struct_is_ID(const StructRNA *type)
PropertyType RNA_property_type(PropertyRNA *prop)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
int RNA_struct_ui_icon(const StructRNA *type)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
bool RNA_property_editable(const PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
PointerRNA RNA_id_pointer_create(ID *id)
struct Collection * collection
CollectionRuntimeHandle * runtime
IDOverrideLibrary * override_library
ListBase layer_collections
struct Collection * collection
struct Collection * instance_collection
struct Collection * master_collection
struct ToolSettings * toolsettings
short lib_override_view_mode
struct BLI_mempool * treestore
float icon_border_intensity
ListBase layer_collections
bNodeTreeTypeHandle * typeinfo
ThemeCollectionColor collection_color[8]
eOLDrawState active[INDEX_ID_MAX+OB_TYPE_MAX]
TreeElement * tree_element[INDEX_ID_MAX+OB_TYPE_MAX]
int num_elements[INDEX_ID_MAX+OB_TYPE_MAX]
bool modifier_show_viewport
bool collection_hide_render
bool collection_hide_select
bool layer_collection_holdout
bool collection_hide_viewport
bool modifier_show_render
bool layer_collection_indirect_only
bool layer_collection_hide_viewport
bool layer_collection_exclude
bool object_hide_viewport
PropertyRNA * layer_collection_hide_viewport
PropertyRNA * layer_collection_indirect_only
PropertyRNA * base_hide_viewport
PropertyRNA * object_hide_viewport
PropertyRNA * object_hide_render
PropertyRNA * constraint_enable
PropertyRNA * layer_collection_holdout
PropertyRNA * collection_hide_select
PropertyRNA * layer_collection_exclude
PropertyRNA * modifier_show_render
PropertyRNA * bone_hide_viewport
PropertyRNA * collection_hide_viewport
PropertyRNA * modifier_show_viewport
PropertyRNA * object_hide_select
PropertyRNA * collection_hide_render
TreeStoreElem * store_elem
std::unique_ptr< AbstractTreeElement > abstract_element
wmEventModifierFlag modifier
struct wmEvent * eventstate
static DynamicLibrary lib
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
#define WM_msg_publish_rna_prop(mbus, id_, data_, type_, prop_)