forked from blender/blender
main sync #3
@ -219,7 +219,7 @@ void outliner_item_mode_toggle(bContext *C,
|
|||||||
static void tree_element_viewlayer_activate(bContext *C, TreeElement *te)
|
static void tree_element_viewlayer_activate(bContext *C, TreeElement *te)
|
||||||
{
|
{
|
||||||
/* paranoia check */
|
/* paranoia check */
|
||||||
if (te->idcode != ID_SCE) {
|
if (te->store_elem->type != TSE_R_LAYER) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,8 +79,14 @@ ListBase TreeDisplayViewLayer::buildTree(const TreeSourceData &source_data)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
TreeElement &te_view_layer = *outliner_add_element(
|
TreeElement &te_view_layer = *outliner_add_element(
|
||||||
&space_outliner_, &tree, scene, nullptr, TSE_R_LAYER, 0);
|
&space_outliner_, &tree, view_layer, nullptr, TSE_R_LAYER, 0);
|
||||||
TREESTORE(&te_view_layer)->flag &= ~TSE_CLOSED;
|
|
||||||
|
TreeStoreElem *tselem = TREESTORE(&te_view_layer);
|
||||||
|
|
||||||
|
if (!tselem->used) {
|
||||||
|
tselem->flag &= ~TSE_CLOSED;
|
||||||
|
}
|
||||||
|
|
||||||
te_view_layer.name = view_layer->name;
|
te_view_layer.name = view_layer->name;
|
||||||
te_view_layer.directdata = view_layer;
|
te_view_layer.directdata = view_layer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user