Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| /* 1) update the action stored for the editor */ | /* 1) update the action stored for the editor */ | ||||
| if (key) { | if (key) { | ||||
| saction->action = (key->adt) ? key->adt->action : NULL; | saction->action = (key->adt) ? key->adt->action : NULL; | ||||
| } | } | ||||
| else { | else { | ||||
| saction->action = NULL; | saction->action = NULL; | ||||
| } | } | ||||
| /* 2) enable 'show sliders' by default, since one of the main | |||||
| * points of the ShapeKey Editor is to provide a one-stop shop | |||||
| * for controlling the shapekeys, whose main control is the value | |||||
| */ | |||||
| saction->flag |= SACTION_SLIDERS; | |||||
| } | } | ||||
| /* make sure action stored is valid */ | /* make sure action stored is valid */ | ||||
| else if (saction->mode == SACTCONT_ACTION) { | else if (saction->mode == SACTCONT_ACTION) { | ||||
| /* 1) update the action stored for the editor */ | /* 1) update the action stored for the editor */ | ||||
| /* TODO: context selector could help decide this with more control? */ | /* TODO: context selector could help decide this with more control? */ | ||||
| if (obact) { | if (obact) { | ||||
| saction->action = (obact->adt) ? obact->adt->action : NULL; | saction->action = (obact->adt) ? obact->adt->action : NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 992 Lines • Show Last 20 Lines | |||||