Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_tree.c
| Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | outliner_add_element( | ||||
| soops, &te->subtree, ob->poselib, te, 0, 0); // XXX FIXME.. add a special type for this | soops, &te->subtree, ob->poselib, te, 0, 0); // XXX FIXME.. add a special type for this | ||||
| if (ob->proxy && !ID_IS_LINKED(ob)) { | if (ob->proxy && !ID_IS_LINKED(ob)) { | ||||
| outliner_add_element(soops, &te->subtree, ob->proxy, te, TSE_PROXY, 0); | outliner_add_element(soops, &te->subtree, ob->proxy, te, TSE_PROXY, 0); | ||||
| } | } | ||||
| outliner_add_element(soops, &te->subtree, ob->data, te, 0, 0); | outliner_add_element(soops, &te->subtree, ob->data, te, 0, 0); | ||||
| if (ob->bake_passes.first) { | |||||
| BakePass *bp; | |||||
| TreeElement *tenla = outliner_add_element(soops, &te->subtree, ob, te, TSE_R_LAYER_BASE, 0); | |||||
| int a; | |||||
| tenla->name = IFACE_("BakePasses"); | |||||
| for (a = 0, bp = ob->bake_passes.first; bp; bp = bp->next, a++) { | |||||
| TreeElement *tenlay = outliner_add_element(soops, &tenla->subtree, ob, te, TSE_R_LAYER, a); | |||||
| tenlay->name = bp->name; | |||||
| tenlay->directdata = bp; | |||||
| if (bp->image) | |||||
| outliner_add_element(soops, &tenlay->subtree, bp->image, tenlay, TSE_R_LAYER, 0); | |||||
| if (bp->material) | |||||
| outliner_add_element(soops, &tenlay->subtree, bp->material, tenlay, TSE_LINKED_MAT, 0); | |||||
| } | |||||
| } | |||||
| if (ob->pose) { | if (ob->pose) { | ||||
| bArmature *arm = ob->data; | bArmature *arm = ob->data; | ||||
| bPoseChannel *pchan; | bPoseChannel *pchan; | ||||
| TreeElement *tenla = outliner_add_element(soops, &te->subtree, ob, te, TSE_POSE_BASE, 0); | TreeElement *tenla = outliner_add_element(soops, &te->subtree, ob, te, TSE_POSE_BASE, 0); | ||||
| tenla->name = IFACE_("Pose"); | tenla->name = IFACE_("Pose"); | ||||
| /* channels undefined in editmode, but we want the 'tenla' pose icon itself */ | /* channels undefined in editmode, but we want the 'tenla' pose icon itself */ | ||||
| ▲ Show 20 Lines • Show All 2,116 Lines • Show Last 20 Lines | |||||