diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-22 15:38:46 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-04-22 15:39:37 +0300 |
commit | a2779a460669fbf49a8b8f1acc9e8ddbc10dd7cf (patch) | |
tree | b1559e949bc635d219f1c515ab7e53cb826673f7 /source/blender | |
parent | f4ecd24f96b158cb6b3c21686ebd048a9cca2c71 (diff) |
Fix T48230: Home key when only one keyframe makes the DopeSheet acting weird.
Simply apply same minimal range as in graph editor when we get a zero one from keyframes.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_action/action_edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index b69547b0506..c0947dacbf0 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -239,6 +239,11 @@ static bool get_keyframe_extents(bAnimContext *ac, float *min, float *max, const } } + if (fabsf(*max - *min) < 0.001f) { + *min -= 0.0005f; + *max += 0.0005f; + } + /* free memory */ ANIM_animdata_freelist(&anim_data); } |