Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tree.c
| Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | if (ob->defbase.first) { | ||||
| for (defgroup = ob->defbase.first, a = 0; defgroup; defgroup = defgroup->next, a++) { | for (defgroup = ob->defbase.first, a = 0; defgroup; defgroup = defgroup->next, a++) { | ||||
| ten = outliner_add_element(soops, &tenla->subtree, ob, tenla, TSE_DEFGROUP, a); | ten = outliner_add_element(soops, &tenla->subtree, ob, tenla, TSE_DEFGROUP, a); | ||||
| ten->name = defgroup->name; | ten->name = defgroup->name; | ||||
| ten->directdata = defgroup; | ten->directdata = defgroup; | ||||
| } | } | ||||
| } | } | ||||
| /* duplicated group */ | /* duplicated group */ | ||||
| if (ob->instance_collection) { | if (ob->instance_collection && (ob->transflag & OB_DUPLICOLLECTION)) { | ||||
| outliner_add_element(soops, &te->subtree, ob->instance_collection, te, 0, 0); | outliner_add_element(soops, &te->subtree, ob->instance_collection, te, 0, 0); | ||||
| } | } | ||||
| } | } | ||||
| // can be inlined if necessary | // can be inlined if necessary | ||||
| static void outliner_add_id_contents(SpaceOutliner *soops, | static void outliner_add_id_contents(SpaceOutliner *soops, | ||||
| TreeElement *te, | TreeElement *te, | ||||
| TreeStoreElem *tselem, | TreeStoreElem *tselem, | ||||
| ▲ Show 20 Lines • Show All 1,910 Lines • Show Last 20 Lines | |||||