Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_channels_defines.c
| Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | else if (ELEM(GS(ale->id->name), ID_MA, ID_PA)) { | ||||
| /* If not in Action Editor mode, action-groups (and their children) | /* If not in Action Editor mode, action-groups (and their children) | ||||
| * must carry some offset too. */ | * must carry some offset too. */ | ||||
| } | } | ||||
| else if (ac->datatype != ANIMCONT_ACTION) { | else if (ac->datatype != ANIMCONT_ACTION) { | ||||
| offset += (short)(0.7f * U.widget_unit); | offset += (short)(0.7f * U.widget_unit); | ||||
| } | } | ||||
| /* nested action groups */ | |||||
| if (ale->type == ANIMTYPE_GROUP) { | |||||
| bActionGroup *grp = (bActionGroup *)(ale->data); | |||||
| while (grp->parent != NULL) { | |||||
| offset += (short)(0.7f * U.widget_unit); | |||||
| grp = grp->parent; | |||||
| } | |||||
| } | |||||
| /* fcurves with nested action groups */ | |||||
| else if (ale->type == ANIMTYPE_FCURVE) { | |||||
| FCurve *fcu = (FCurve *)(ale->data); | |||||
| bActionGroup *grp = fcu->grp; | |||||
| while (grp != NULL) { | |||||
| offset += (short)(0.7f * U.widget_unit); | |||||
| grp = grp->parent; | |||||
| } | |||||
| } | |||||
| /* nodetree animdata */ | /* nodetree animdata */ | ||||
| if (GS(ale->id->name) == ID_NT) { | if (GS(ale->id->name) == ID_NT) { | ||||
| offset += acf_nodetree_rootType_offset((bNodeTree *)ale->id); | offset += acf_nodetree_rootType_offset((bNodeTree *)ale->id); | ||||
| } | } | ||||
| } | } | ||||
| /* offset is just the normal type - i.e. based on indention */ | /* offset is just the normal type - i.e. based on indention */ | ||||
| return offset; | return offset; | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||