Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-11-12 21:36:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-11-21 15:08:33 +0300
commit355905cb0278c368059fdecef8735b731d97b97c (patch)
tree9a08179b5b827713654a5631484b38b60630674a /source/blender/editors/space_graph/graph_edit.c
parentc637290a6e2894c6f3f22e42f5632ff319a623c8 (diff)
Fix T67873: View Selected in Graph Editor (Only Selected Curve
Keyframes) takes hidden keys into account when calculating zoom Note that with the 'View Only Selected Curve Keyframes' option enabled, it is also possible to select [box/circle/lasso] hidden/non-visible keyframes. Think this should never happen, but that is for a later commit (along some deduplication of animdata filtering code) Reviewed By: Severin, Sybren Maniphest Tasks: T67873 Differential Revision: https://developer.blender.org/D6237
Diffstat (limited to 'source/blender/editors/space_graph/graph_edit.c')
-rw-r--r--source/blender/editors/space_graph/graph_edit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 1a488118403..e7a25f6c659 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -85,6 +85,7 @@ void get_graph_keyframe_extents(bAnimContext *ac,
const bool include_handles)
{
Scene *scene = ac->scene;
+ SpaceGraph *sipo = (SpaceGraph *)ac->sl;
ListBase anim_data = {NULL, NULL};
bAnimListElem *ale;
@@ -92,6 +93,10 @@ void get_graph_keyframe_extents(bAnimContext *ac,
/* get data to filter, from Dopesheet */
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_CURVE_VISIBLE | ANIMFILTER_NODUPLIS);
+ if (sipo->flag & SIPO_SELCUVERTSONLY) {
+ filter |= ANIMFILTER_SEL;
+ }
+
ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
/* set large values initial values that will be easy to override */