No functional changes intended. This patch extracts functionality to get all `bAnimListElem` that are editable in the Graph Editor into a separate function so it can be re-used by other operators. This makes it easy to ensure the same data is retrieved and filter flags can't go out of sync. Extracted from #135913 Part of: #135794 Pull Request: https://projects.blender.org/blender/blender/pulls/137142
22 lines
595 B
C++
22 lines
595 B
C++
/* SPDX-FileCopyrightText: 2025 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "BLI_vector.hh"
|
|
|
|
struct bAnimContext;
|
|
struct ListBase;
|
|
|
|
namespace blender::ed::graph {
|
|
|
|
/**
|
|
* Return all bAnimListElem for which the keyframes are visible in the
|
|
* GUI. This excludes FCurves that are drawn as curves but whose keyframes are NOT shown.
|
|
* All entries of the list will be of type ANIMTYPE_FCURVE.
|
|
*
|
|
* The listbase will have to be freed by the caller with ANIM_animdata_freelist;
|
|
*/
|
|
ListBase get_editable_fcurves(bAnimContext &ac);
|
|
|
|
} // namespace blender::ed::graph
|