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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-04-22 15:38:46 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-04-22 15:39:37 +0300
commita2779a460669fbf49a8b8f1acc9e8ddbc10dd7cf (patch)
treeb1559e949bc635d219f1c515ab7e53cb826673f7
parentf4ecd24f96b158cb6b3c21686ebd048a9cca2c71 (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.
-rw-r--r--source/blender/editors/space_action/action_edit.c5
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);
}