Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tree.c
| Show First 20 Lines • Show All 1,102 Lines • ▼ Show 20 Lines | else if (type == TSE_RNA_STRUCT) { | ||||
| tot = RNA_property_collection_length(ptr, iterprop); | tot = RNA_property_collection_length(ptr, iterprop); | ||||
| /* auto open these cases */ | /* auto open these cases */ | ||||
| if (!parent || (RNA_property_type(parent->directdata)) == PROP_POINTER) | if (!parent || (RNA_property_type(parent->directdata)) == PROP_POINTER) | ||||
| if (!tselem->used) | if (!tselem->used) | ||||
| tselem->flag &= ~TSE_CLOSED; | tselem->flag &= ~TSE_CLOSED; | ||||
| if (TSELEM_OPEN(tselem, soops)) { | if (TSELEM_OPEN(tselem, soops)) { | ||||
| for (a = 0; a < tot; a++) | for (a = 0; a < tot; a++) { | ||||
| RNA_property_collection_lookup_int(ptr, iterprop, a, &propptr); | |||||
| if (!(RNA_property_flag(propptr.data) & PROP_HIDDEN)) { | |||||
| outliner_add_element(soops, &te->subtree, (void *)ptr, te, TSE_RNA_PROPERTY, a); | outliner_add_element(soops, &te->subtree, (void *)ptr, te, TSE_RNA_PROPERTY, a); | ||||
| } | } | ||||
| } | |||||
| } | |||||
| else if (tot) | else if (tot) | ||||
| te->flag |= TE_LAZY_CLOSED; | te->flag |= TE_LAZY_CLOSED; | ||||
| te->rnaptr = *ptr; | te->rnaptr = *ptr; | ||||
| } | } | ||||
| else if (type == TSE_RNA_PROPERTY) { | else if (type == TSE_RNA_PROPERTY) { | ||||
| /* property */ | /* property */ | ||||
| iterprop = RNA_struct_iterator_property(ptr->type); | iterprop = RNA_struct_iterator_property(ptr->type); | ||||
| ▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines | |||||