Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_buttons.c
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | switch (ale->type) { | ||||
| /* NLA-Strip pointer */ | /* NLA-Strip pointer */ | ||||
| NlaStrip *strip = BKE_nlastrip_find_active(nlt); | NlaStrip *strip = BKE_nlastrip_find_active(nlt); | ||||
| RNA_pointer_create(ale->id, &RNA_NlaStrip, strip, strip_ptr); | RNA_pointer_create(ale->id, &RNA_NlaStrip, strip, strip_ptr); | ||||
| } | } | ||||
| found = 1; | found = 1; | ||||
| break; | break; | ||||
| } | } | ||||
| case ANIMTYPE_NLAACTION: | |||||
| case ANIMTYPE_SCENE: /* Top-Level Widgets doubling up as datablocks */ | case ANIMTYPE_SCENE: /* Top-Level Widgets doubling up as datablocks */ | ||||
| case ANIMTYPE_OBJECT: | case ANIMTYPE_OBJECT: | ||||
| case ANIMTYPE_DSMAT: /* Datablock AnimData Expanders */ | case ANIMTYPE_DSMAT: /* Datablock AnimData Expanders */ | ||||
| case ANIMTYPE_DSLAM: | case ANIMTYPE_DSLAM: | ||||
| case ANIMTYPE_DSCAM: | case ANIMTYPE_DSCAM: | ||||
| case ANIMTYPE_DSCACHEFILE: | case ANIMTYPE_DSCACHEFILE: | ||||
| case ANIMTYPE_DSCUR: | case ANIMTYPE_DSCUR: | ||||
| case ANIMTYPE_DSSKEY: | case ANIMTYPE_DSSKEY: | ||||
| Show All 34 Lines | switch (ale->type) { | ||||
| /* set found status to -1, since setting to 1 would break the loop | /* set found status to -1, since setting to 1 would break the loop | ||||
| * and potentially skip an active NLA-Track in some cases... | * and potentially skip an active NLA-Track in some cases... | ||||
| */ | */ | ||||
| found = -1; | found = -1; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| /* Don't set a pointer for NLA Actions. | |||||
| * This will break the dependency graph for the context menu. | |||||
| */ | |||||
| case ANIMTYPE_NLAACTION: | |||||
| break; | |||||
| } | } | ||||
| if (found > 0) { | if (found > 0) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| /* free temp data */ | /* free temp data */ | ||||
| ▲ Show 20 Lines • Show All 528 Lines • Show Last 20 Lines | |||||