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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user