GPv3: Frame All/Selected keyframes #111480
|
@ -198,6 +198,19 @@ static bool get_keyframe_extents(bAnimContext *ac, float *min, float *max, const
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (ale->datatype == ALE_GREASE_PENCIL_CEL) {
|
||||||
|
const blender::bke::greasepencil::Layer &layer =
|
||||||
|
static_cast<GreasePencilLayer *>(ale->data)->wrap();
|
||||||
|
|
||||||
|
for (const auto [key, frame] : layer.frames().items()) {
|
||||||
|
if (onlySel && !frame.is_selected()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
*min = min_ff(*min, float(key));
|
||||||
|
*max = max_ff(*max, float(key));
|
||||||
|
found = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
FCurve *fcu = (FCurve *)ale->key_data;
|
FCurve *fcu = (FCurve *)ale->key_data;
|
||||||
float tmin, tmax;
|
float tmin, tmax;
|
||||||
|
|
Loading…
Reference in New Issue