99 *width = std::max(*width,
int(te->xend));
100 if (height !=
nullptr) {
130 const short id_type =
GS(id->
name);
154 ebone->flag &=
~flag;
191 Bone *bone =
static_cast<Bone *
>(poin2);
262 const char *propname)
276 ID *
id = ob ? &ob->
id : &scene->
id;
277 StructRNA *struct_rna = ob ? &RNA_Object : &RNA_ObjectBase;
278 void *
data = ob ? (
void *)ob : (
void *)base;
287 ob_iter =
static_cast<Object *
>(ob_iter->id.next))
298 if (base_iter ==
nullptr) {
326 const char *propname =
static_cast<const char *
>(poin2);
335 Base *base =
static_cast<Base *
>(poin);
336 const char *propname =
static_cast<const char *
>(poin2);
378 if (!layer_collection) {
413 Collection *collection_iter = layer_collection ?
414 (collection ? layer_collection_iter->
collection :
nullptr) :
418 layer_collection_iter,
420 layer_or_collection_prop,
443 const bool value_cmp,
452 const Collection *collection_ensure_cmp = collection_cmp ? collection_cmp :
463 else if (collection_ensure == collection_ensure_cmp) {
470 if (value != value_cmp) {
477 if (value == value_cmp) {
486 Collection *collection_iter = layer_collection ?
487 (collection ? layer_collection_iter->
collection :
nullptr) :
493 layer_collection_cmp,
496 layer_or_collection_prop,
497 layer_collection_iter,
512 const char *propname,
516 const bool is_hide = strstr(propname,
"hide_") ||
STREQ(propname,
"exclude");
524 bool was_isolated = (value == is_hide);
529 layer_or_collection_prop,
530 top_layer_collection,
538 top_layer_collection,
540 layer_or_collection_prop,
549 top_layer_collection,
551 layer_or_collection_prop,
560 layer_or_collection_prop,
565 if (layer_collection) {
574 while (lc_parent != layer_collection) {
576 scene, lc_parent, collection ? lc_parent->
collection :
nullptr, &
ptr);
604 const char *propname)
614 if (!
ELEM(
true, do_isolate, extend)) {
619 ID *
id = collection ? &collection->
id : &scene->
id;
620 StructRNA *struct_rna = collection ? &RNA_Collection : &RNA_LayerCollection;
621 void *
data = collection ? (
void *)collection : (
void *)layer_collection;
629 if (layer_collection !=
nullptr) {
632 struct_rna = collection ? &RNA_Object : &RNA_ObjectBase;
641 layer_or_collection_prop,
650 layer_or_collection_prop,
669 const char *propname =
static_cast<const char *
>(poin2);
680 const char *propname =
static_cast<const char *
>(poin2);
682 C, layer_collection, layer_collection->
collection, propname);
692 const char *propname =
static_cast<const char *
>(poin2);
704 const char *undo_str =
nullptr;
711 auto id_rename_helper = [bmain, tselem, oldname]() ->
bool {
712 std::string new_name = tselem->
id->
name + 2;
721 if (id_rename_helper()) {
722 undo_str =
"Rename Data-Block";
757 "Library path '%s' does not exist, correct this before saving",
763 "Library path '%s' is now valid, please reload the library",
772 switch (tselem->
type) {
779 undo_str =
"Rename Vertex Group";
784 if (id_rename_helper()) {
785 undo_str =
"Rename Data-Block";
793 undo_str =
"Rename NLA Track";
799 undo_str =
"Rename Modifier";
806 char newname[
sizeof(ebone->
name)];
815 undo_str =
"Rename Edit Bone";
826 char newname[
sizeof(bone->
name)];
838 undo_str =
"Rename Bone";
848 char newname[
sizeof(pchan->
name)];
863 undo_str =
"Rename Pose Bone";
881 undo_str =
"Rename Grease Pencil Layer";
892 std::string new_name(node.
name());
893 node.set_name(oldname);
894 grease_pencil.rename_node(*bmain, node, new_name);
897 undo_str =
"Rename Grease Pencil Drawing";
905 char newname[
sizeof(view_layer->
name)];
914 undo_str =
"Rename View Layer";
919 if (id_rename_helper()) {
920 undo_str =
"Rename Data-Block";
936 undo_str =
"Rename Bone Collection";
942 undo_str =
"Rename Action Slot";
1089 if (layer_collection !=
nullptr) {
1091 &scene->
id, &RNA_LayerCollection, layer_collection);
1095 if (layer_collection) {
1097 layer_collection_ptr, collection_ptr, props, props_active);
1150 } restrict_offsets = {0};
1151 int restrict_column_offset = 0;
1202 ICON_RESTRICT_RENDER_OFF,
1203 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1210 TIP_(
"Use view layer for rendering"));
1227 Base *base = (te->directdata) ? (
Base *)te->directdata :
1235 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1244 TIP_(
"Temporarily hide in viewport\n"
1245 " \u2022 Shift to set children"));
1260 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1269 TIP_(
"Disable selection in viewport\n"
1270 " \u2022 Shift to set children"));
1283 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1292 TIP_(
"Globally disable in viewports\n"
1293 " \u2022 Shift to set children"));
1306 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1315 TIP_(
"Globally disable in renders\n"
1316 " \u2022 Shift to set children"));
1334 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1360 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1381 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1410 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1419 TIP_(
"Restrict visibility in the 3D View\n"
1420 " \u2022 Shift to set children"));
1431 ICON_RESTRICT_SELECT_OFF,
1432 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1439 TIP_(
"Restrict selection in the 3D View\n"
1440 " \u2022 Shift to set children"));
1455 ICON_RESTRICT_VIEW_OFF,
1456 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1463 TIP_(
"Restrict visibility in the 3D View\n"
1464 " \u2022 Shift to set children"));
1475 ICON_RESTRICT_SELECT_OFF,
1476 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1483 TIP_(
"Restrict selection in the 3D View\n"
1484 " \u2022 Shift to set children"));
1491 ID *
id = tselem->
id;
1500 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1507 TIP_(
"Restrict visibility in the 3D View"));
1519 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1526 TIP_(
"Restrict editing of strokes and keyframes in this layer"));
1550 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1571 scene, te, &collection_ptr, &layer_collection_ptr, &props, &props_active))
1579 if (layer_collection !=
nullptr) {
1585 int(region->
v2d.
cur.
xmax) - restrict_offsets.enable,
1589 &layer_collection_ptr,
1607 int(region->
v2d.
cur.
xmax - restrict_offsets.hide),
1611 &layer_collection_ptr,
1616 TIP_(
"Temporarily hide in viewport\n"
1617 " \u2022 Ctrl to isolate collection\n"
1618 " \u2022 Shift to set inside collections and objects"));
1622 (
char *)
"hide_viewport");
1634 int(region->
v2d.
cur.
xmax - restrict_offsets.holdout),
1638 &layer_collection_ptr,
1643 TIP_(
"Mask out objects in collection from view layer\n"
1644 " \u2022 Ctrl to isolate collection\n"
1645 " \u2022 Shift to set inside collections"));
1662 int(region->
v2d.
cur.
xmax - restrict_offsets.indirect_only),
1666 &layer_collection_ptr,
1671 TIP_(
"Objects in collection only contribute indirectly (through shadows and "
1672 "reflections) in the view layer\n"
1673 " \u2022 Ctrl to isolate collection\n"
1674 " \u2022 Shift to set inside collections"));
1678 (
char *)
"indirect_only");
1693 int(region->
v2d.
cur.
xmax - restrict_offsets.viewport),
1702 TIP_(
"Globally disable in viewports\n"
1703 " \u2022 Ctrl to isolate collection\n"
1704 " \u2022 Shift to set inside collections and objects"));
1705 if (layer_collection !=
nullptr) {
1709 (
char *)
"hide_viewport");
1715 (
char *)
"hide_viewport");
1728 int(region->
v2d.
cur.
xmax - restrict_offsets.render),
1737 TIP_(
"Globally disable in renders\n"
1738 " \u2022 Ctrl to isolate collection\n"
1739 " \u2022 Shift to set inside collections and objects"));
1740 if (layer_collection !=
nullptr) {
1744 (
char *)
"hide_render");
1761 int(region->
v2d.
cur.
xmax - restrict_offsets.select),
1770 TIP_(
"Disable selection in viewport\n"
1771 " \u2022 Ctrl to isolate collection\n"
1772 " \u2022 Shift to set inside collections and objects"));
1773 if (layer_collection !=
nullptr) {
1777 (
char *)
"hide_select");
1795 scene, te, &collection_ptr, &layer_collection_ptr, &props, &props_active);
1800 block, scene, view_layer, region, space_outliner, &te->subtree, props_active);
1815 ID *
id = tselem->
id;
1822 std::optional<StringRef> tip;
1842 TIP_(
"Number of users"));
1846 if (has_fake_user) {
1847 tip = is_linked ?
TIP_(
"Item is protected from deletion") :
1848 TIP_(
"Click to remove protection from deletion");
1852 tip = is_linked ?
TIP_(
"Item is not protected from deletion") :
1853 TIP_(
"Click to add protection from deletion");
1857 TIP_(
"Item has no users and will be removed") :
1858 TIP_(
"Item has no users and will be removed.\nClick to protect from deletion");
1885 if (!real_users && !has_fake_user) {
1886 uchar overlay_color[4];
1902 const float pad_y = 0.5f *
U.pixelsize;
1917 if (!override_elem) {
1941 StringRefNull op_label = override_op_elem->get_override_operation_label();
1967 (prop_type ==
PROP_ENUM) ? std::nullopt : std::optional(
""),
1983 block,
ptr, prop, ICON_NONE,
x + pad_x, te->ys + pad_y, item_max_width, item_height);
1992 if (!session_uid_a || !session_uid_b) {
1996 return session_uid_a == session_uid_b;
2031 const BIFIconID icon = is_system_override ? ICON_LIBRARY_DATA_OVERRIDE_NONEDITABLE :
2032 ICON_LIBRARY_DATA_OVERRIDE;
2035 "ED_OT_lib_id_override_editable_toggle",
2085 ptr = te_rna_prop->get_pointer_rna();
2086 prop = te_rna_prop->get_property_rna();
2131 ptr = te_rna_array_elem->get_pointer_rna();
2132 prop = te_rna_array_elem->get_property_rna();
2151 const float restrict_column_width,
2222 const bool object_data_shared = (ob->
data == tvc.
obact->
data);
2233 const bool lock_object_modes)
2266 TIP_(
"Another object has this shared data in edit mode"));
2271 bool draw_active_icon = ob->
mode == ob_active->
mode;
2277 if (!lock_object_modes && ob != ob_active && !(tvc.
ob_edit || tvc.
ob_pose)) {
2278 draw_active_icon =
false;
2281 const bool object_data_shared = (ob->
data == ob_active->
data);
2282 draw_active_icon = draw_active_icon || object_data_shared;
2286 if (draw_active_icon) {
2288 tip = object_data_shared ?
TIP_(
"Change the object in the current mode") :
2289 TIP_(
"Remove from the current mode");
2294 "Change the object in the current mode\n"
2295 " \u2022 Ctrl to add to the current mode");
2319 UI_but_disable(but,
"Can't edit library or non-editable override data");
2377 const bool use_mode_column,
2381 const short mode_column_offset = (use_mode_column && (space_outliner->
outlinevis ==
SO_SCENES)) ?
2404 const bool use_mode_column)
2413 block, space_outliner, warning_msg, use_mode_column, te->
ys);
2430 return ICON_OUTLINER_OB_LIGHT;
2432 return ICON_OUTLINER_OB_MESH;
2434 return ICON_OUTLINER_OB_CAMERA;
2436 return ICON_OUTLINER_OB_CURVE;
2438 return ICON_OUTLINER_OB_META;
2440 return ICON_OUTLINER_OB_LATTICE;
2442 return ICON_OUTLINER_OB_ARMATURE;
2444 return ICON_OUTLINER_OB_FONT;
2446 return ICON_OUTLINER_OB_SURFACE;
2448 return ICON_OUTLINER_OB_SPEAKER;
2450 return ICON_OUTLINER_OB_LIGHTPROBE;
2452 return ICON_OUTLINER_OB_CURVES;
2454 return ICON_OUTLINER_OB_POINTCLOUD;
2456 return ICON_OUTLINER_OB_VOLUME;
2459 return ICON_OUTLINER_OB_GROUP_INSTANCE;
2462 return ICON_OUTLINER_OB_IMAGE;
2465 return ICON_OUTLINER_OB_FORCE_FIELD;
2468 return ICON_OUTLINER_OB_EMPTY;
2471 return ICON_OUTLINER_OB_GREASEPENCIL;
2480 switch (
short(
GS(id->
name))) {
2482 return ICON_SCENE_DATA;
2484 return ICON_OUTLINER_DATA_MESH;
2489 return ICON_OUTLINER_DATA_FONT;
2491 return ICON_OUTLINER_DATA_SURFACE;
2493 return ICON_OUTLINER_DATA_CURVE;
2498 return ICON_OUTLINER_DATA_META;
2500 return ICON_OUTLINER_DATA_LATTICE;
2505 return ICON_LIGHT_POINT;
2507 return ICON_LIGHT_SUN;
2509 return ICON_LIGHT_SPOT;
2511 return ICON_LIGHT_AREA;
2513 return ICON_OUTLINER_DATA_LIGHT;
2517 return ICON_MATERIAL_DATA;
2519 return ICON_TEXTURE_DATA;
2521 return ICON_IMAGE_DATA;
2524 return ICON_OUTLINER_DATA_SPEAKER;
2526 return ICON_OUTLINER_DATA_ARMATURE;
2528 return ICON_OUTLINER_DATA_CAMERA;
2530 return ICON_SHAPEKEY_DATA;
2532 return ICON_WORLD_DATA;
2540 return ICON_FILE_TEXT;
2546 return ICON_OUTLINER_COLLECTION;
2548 return ICON_OUTLINER_DATA_CURVES;
2550 return ICON_OUTLINER_DATA_POINTCLOUD;
2552 return ICON_OUTLINER_DATA_VOLUME;
2555 return ICON_LIBRARY_DATA_BROKEN;
2557 else if (((
Library *)
id)->runtime->parent) {
2558 return ICON_LIBRARY_DATA_INDIRECT;
2561 return ICON_LIBRARY_DATA_DIRECT;
2564 return ICON_LINE_DATA;
2567 return ICON_OUTLINER_DATA_GREASEPENCIL;
2572 return ICON_LIGHTPROBE_SPHERE;
2574 return ICON_LIGHTPROBE_PLANE;
2576 return ICON_LIGHTPROBE_VOLUME;
2578 return ICON_LIGHTPROBE_SPHERE;
2582 return ICON_BRUSH_DATA;
2585 return ICON_WORKSPACE;
2587 return ICON_MOD_MASK;
2594 return ICON_SEQUENCE;
2596 return ICON_CURVE_BEZCURVE;
2598 return ICON_PARTICLES;
2602 return ICON_FILE_FONT;
2613 switch (tselem->
type) {
2615 data.icon = ICON_ACTION_SLOT;
2618 data.icon = ICON_ANIM_DATA;
2621 data.icon = ICON_NLA;
2624 data.icon = ICON_NLA;
2627 data.icon = ICON_ACTION;
2630 data.icon = ICON_DRIVER;
2633 data.icon = ICON_GROUP_VERTEX;
2636 data.icon = ICON_GROUP_VERTEX;
2640 data.icon = ICON_BONE_DATA;
2643 data.icon = ICON_CONSTRAINT;
2644 data.drag_id = tselem->
id;
2648 data.drag_id = tselem->
id;
2651 data.icon = ICON_CON_CAMERASOLVER;
2654 data.icon = ICON_CON_FOLLOWTRACK;
2657 data.icon = ICON_CON_OBJECTSOLVER;
2660 data.icon = ICON_CON_LOCLIKE;
2663 data.icon = ICON_CON_ROTLIKE;
2666 data.icon = ICON_CON_SIZELIKE;
2669 data.icon = ICON_CON_TRANSLIKE;
2672 data.icon = ICON_CON_DISTLIMIT;
2675 data.icon = ICON_CON_LOCLIMIT;
2678 data.icon = ICON_CON_ROTLIMIT;
2681 data.icon = ICON_CON_SIZELIMIT;
2684 data.icon = ICON_CON_SAMEVOL;
2687 data.icon = ICON_CON_TRANSFORM;
2690 data.icon = ICON_CON_TRANSFORM_CACHE;
2693 data.icon = ICON_CON_CLAMPTO;
2696 data.icon = ICON_CON_TRACKTO;
2699 data.icon = ICON_CON_KINEMATIC;
2702 data.icon = ICON_CON_LOCKTRACK;
2705 data.icon = ICON_CON_SPLINEIK;
2708 data.icon = ICON_CON_STRETCHTO;
2711 data.icon = ICON_CON_TRACKTO;
2714 data.icon = ICON_CON_ACTION;
2717 data.icon = ICON_CON_ARMATURE;
2720 data.icon = ICON_CON_CHILDOF;
2723 data.icon = ICON_CON_FLOOR;
2726 data.icon = ICON_CON_FOLLOWPATH;
2729 data.icon = ICON_CON_PIVOT;
2732 data.icon = ICON_CON_SHRINKWRAP;
2736 data.icon = ICON_DOT;
2742 data.icon = ICON_MODIFIER_DATA;
2743 data.drag_id = tselem->
id;
2751 data.icon = ICON_LIBRARY_DATA_OVERRIDE;
2754 data.icon = ICON_OBJECT_DATA;
2757 data.icon = ICON_PARTICLES;
2761 data.drag_id = tselem->
id;
2766 data.icon = modifier_type->icon;
2769 data.icon = ICON_DOT;
2774 data.icon = ICON_NODETREE;
2777 data.icon = ICON_ARMATURE_DATA;
2780 data.icon = ICON_BONE_DATA;
2783 data.icon = ICON_RENDERLAYERS;
2786 data.icon = ICON_OUTLINER_OB_GROUP_INSTANCE;
2789 data.icon = ICON_RENDER_RESULT;
2793 data.icon = ICON_GROUP_BONE;
2799 data.icon = ICON_SCENE_DATA;
2802 data.icon = ICON_TRACKER;
2805 data.icon = ICON_MOD_MASK;
2808 data.icon = ICON_FILE_MOVIE;
2811 data.icon = ICON_SOUND;
2814 data.icon = ICON_FILE_IMAGE;
2818 data.icon = ICON_COLOR;
2821 data.icon = ICON_FONT_DATA;
2834 data.icon = ICON_SHADERFX;
2839 data.icon = ICON_ARROW_LEFTRIGHT;
2842 data.icon = ICON_SEQ_STRIP_META;
2845 data.icon = ICON_DOT;
2851 data.icon = ICON_LIBRARY_DATA_DIRECT;
2854 data.icon = ICON_SEQ_STRIP_DUPLICATE;
2861 data.drag_id =
static_cast<ID *
>(
ptr.data);
2874 data.drag_id = tselem->
id;
2878 data.icon = ICON_OUTLINER_COLLECTION;
2882 data.icon = ICON_OUTLINER_DATA_GP_LAYER;
2889 data.icon = ICON_OUTLINER_DATA_GP_LAYER;
2894 data.icon = ICON_GREASEPENCIL_LAYER_GROUP;
2903 data.drag_id = tselem->
id;
2904 data.icon = ICON_SHADERFX;
2907 data.icon = ICON_DOT;
2911 else if (tselem->
id) {
2912 data.drag_id = tselem->
id;
2937 const bool is_clickable,
2938 const int num_elements)
2941 if (
data.icon == 0) {
2950 if (!is_clickable ||
x >= xmax || is_collection) {
2957 if (is_collection) {
3020 icon_color[3] = 0.4f;
3022 icon_border[3] = 0.2f;
3030 const float icon_color[4],
3031 const float icon_border[4])
3051 const int num_elements)
3056 float icon_color[4], icon_border[4];
3060 icon_border[3] = 0.3f;
3075 block, xmax,
float(*offsx),
float(ys), tselem, te, alpha_fac,
false, num_elements);
3080 if (num_elements > 1) {
3133 bool in_bone_hierarchy,
3134 const bool is_grease_pencil_node_hierarchy,
3153 (is_grease_pencil_node_hierarchy && is_grease_pencil_node) ||
3154 (in_bone_hierarchy && is_bone))
3158 if (te->idcode ==
ID_OB) {
3212 const bool is_root_level_bone = is_bone && (level == 0);
3213 in_bone_hierarchy |= is_root_level_bone;
3216 const bool in_grease_pencil_node_hierarchy = is_grease_pencil_node_hierarchy ||
3217 (is_grease_pencil_node && level == 0);
3219 in_bone_hierarchy || in_grease_pencil_node_hierarchy)
3232 in_grease_pencil_node_hierarchy,
3245 for (
int j = 0; j < num_subtypes; j++) {
3246 const int index = index_base + j;
3267 if ((te->flag & TE_ICONROW) == 0 && (te->flag & TE_ICONROW_MERGED) == 0) {
3288 const bool is_visible = (base !=
nullptr) &&
3301 switch (tselem->
type) {
3306 return !is_visible || is_excluded;
3311 return !node.is_visible();
3333 bool draw_grayed_out,
3336 const float restrict_column_width,
3343 uchar text_color[4];
3345 float icon_bgcolor[4], icon_border[4];
3357 if (restrict_column_width > 0) {
3358 xmax -= restrict_column_width +
UI_UNIT_X;
3370 const bool is_selected = (base !=
nullptr) && ((base->
flag &
BASE_SELECTED) != 0);
3372 if (ob == tvc.
obact) {
3377 if (ob == tvc.
obact) {
3380 text_color[3] = 255;
3385 text_color[3] = 255;
3392 icon_border[3] = 0.3f;
3398 icon_bgcolor[3] = 0.2f;
3402 text_color[3] = 255;
3411 text_color[3] = 255;
3419 float(startx) + offsx + 2.0f *
UI_UNIT_X,
3432 int icon_x = startx;
3437 float(icon_x) + 2 * ufac,
float(*starty) + 1 * ufac, ICON_DOWNARROW_HLT, alpha_fac);
3441 float(icon_x) + 2 * ufac,
float(*starty) + 1 * ufac, ICON_RIGHTARROW, alpha_fac);
3450 float(startx) + offsx,
3469 if (lib_icon != ICON_NONE) {
3471 float(startx) + offsx + 2 * ufac,
float(*starty) + 2 * ufac, lib_icon, alpha_fac);
3479 float(startx) + offsx + 2 * ufac,
float(*starty) + 2 * ufac, ICON_EXPORT, alpha_fac);
3490 text_color[3] = 255;
3492 text_color[3] *= alpha_fac;
3506 int tempx = startx + offsx;
3533 te->
xend = startx + offsx;
3541 bool draw_children_grayed_out = draw_grayed_out || (ten->flag &
TE_DRAGGING);
3548 draw_children_grayed_out,
3551 restrict_column_width,
3573 const uint pos,
const int x,
const int y1,
const int y2,
const bool draw_dashed)
3576 const short line_padding =
UI_UNIT_Y / 4.0f;
3579 immUniform1f(
"udash_factor", draw_dashed ? 0.5f : 1.0f);
3595 bool draw_grayed_out,
3602 bool draw_hierarchy_line;
3603 bool is_object_line;
3606 draw_hierarchy_line =
false;
3607 is_object_line =
false;
3614 draw_hierarchy_line =
true;
3623 draw_hierarchy_line =
true;
3624 is_object_line =
true;
3632 draw_hierarchy_line =
true;
3647 if (draw_hierarchy_line) {
3649 uchar line_color[4];
3657 line_color[3] = alpha_fac;
3676 float viewport_size[4];
3687 pos, space_outliner, lb, tvc, startx,
col,
false, starty);
3736 const float col_selection[4],
3737 const float col_active[4],
3738 const float col_highlight[4],
3739 const float col_searchmatch[4],
3749 const int start_y = *io_start_y;
3780 immRectf(
pos, start_x, start_y -
U.pixelsize, end_x, start_y +
U.pixelsize);
3811 const float col_highlight[4] = {1.0f, 1.0f, 1.0f, 0.13f};
3812 float col_selection[4], col_active[4], col_searchmatch[4];
3815 col_selection[3] = 1.0f;
3817 col_active[3] = 1.0f;
3819 col_searchmatch[3] = 0.5f;
3842 const float right_column_width,
3843 const bool use_mode_column,
3844 const bool use_warning_column,
3849 short columns_offset = use_mode_column ?
UI_UNIT_X : 0;
3859 if (use_warning_column) {
3872 int scissor[4] = {0};
3879 if (right_column_width > 0.0f) {
3891 int startx = columns_offset +
UI_UNIT_X / 2 - (
U.pixelsize + 1) / 2;
3898 int startx = columns_offset;
3913 if (right_column_width > 0.0f) {
3932 float col_alternating[4];
3936 const float x1 = 0.0f, x2 = region->
v2d.
cur.
xmax;
3937 float y1 = ystart, y2;
3965 float right_column_width)
3971 return max_tree_width + right_column_width;
3978 float right_column_width)
3980 int sizex =
outliner_width(space_outliner, tree_width, right_column_width);
3981 int sizey = tree_height;
4061 int tree_width, tree_height;
4081 const int x = region->
v2d.
cur.
xmax - right_column_width;
4091 mainvar, block, region, space_outliner, &space_outliner->
tree,
x);
4094 else if (right_column_width > 0.0f) {
4103 &space_outliner->
tree,
4108 if (use_mode_column) {
4113 if (use_warning_column) {
4129 region, space_outliner, tree_width, tree_height, right_column_width);
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.
bool BKE_collection_has_collection(const Collection *parent, const Collection *collection)
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(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void BLI_uniquename(const struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
void DEG_id_tag_update(ID *id, unsigned int flags)
void DEG_relations_tag_update(Main *bmain)
@ LIBOVERRIDE_FLAG_SYSTEM_DEFINED
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_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
@ BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT
@ LAYER_COLLECTION_EXCLUDE
@ 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_blend(eGPUBlend blend)
void GPU_line_width(float width)
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_block_emboss_set(uiBlock *block, blender::ui::EmbossType emboss)
void UI_fontstyle_draw_simple(const uiFontStyle *fs, float x, float y, const char *str, const uchar col[4])
uiBlock * UI_block_begin(const bContext *C, ARegion *region, std::string name, blender::ui::EmbossType emboss)
uiBut * uiDefBut(uiBlock *block, int 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)
std::optional< int64_t > UI_but_context_int_get(const uiBut *but, blender::StringRef name)
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)
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 * uiDefIconButBitS(uiBlock *block, int 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)
uiBut * uiDefIconButO(uiBlock *block, int type, blender::StringRefNull opname, wmOperatorCallContext opcontext, int icon, int x, int y, short width, short height, 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)
uiBut * uiDefIconBut(uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, void *poin, float min, float max, std::optional< blender::StringRef > tip)
uiBut * uiDefIconButR_prop(uiBlock *block, int 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_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])
@ UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE
void UI_block_end(const bContext *C, uiBlock *block)
uiBut * uiDefIconButBitI(uiBlock *block, int 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_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_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)
#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)
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)
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 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)
void outliner_build_tree(Main *mainvar, Scene *scene, ViewLayer *view_layer, SpaceOutliner *space_outliner, ARegion *region)
static bool outliner_but_identity_cmp_context_id_fn(const uiBut *a, const uiBut *b)
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)
static void outliner_draw_highlights(uint pos, 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 start_x, int *io_start_y)
@ TE_CHILD_NOT_IN_COLLECTION
@ TE_PRETEND_HAS_CHILDREN
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 restrictbutton_bone_visibility_fn(bContext *C, void *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)
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
Collection_Runtime 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_)