Blender V5.3
graph_query.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "DNA_listBase.h"
10#include "DNA_userdef_types.h"
11
12#include "ED_anim_api.hh"
13#include "ED_space_graph.hh"
14
15namespace blender::ed::graph {
16
17ListBaseT<bAnimListElem> get_editable_fcurves(bAnimContext &ac)
18{
19 ListBaseT<bAnimListElem> anim_data = {nullptr, nullptr};
22 if (U.animation_flag & USER_ANIM_ONLY_SHOW_SELECTED_CURVE_KEYS) {
24 }
25
26 ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, eAnimCont_Types(ac.datatype));
27 return anim_data;
28}
29
30} // namespace blender::ed::graph
These structs are the foundation for all linked lists in the library system.
ListBaseT< bAnimListElem > get_editable_fcurves(bAnimContext &ac)
UserDef U
Definition blender.cc:58
@ USER_ANIM_ONLY_SHOW_SELECTED_CURVE_KEYS
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
@ ANIMFILTER_FCURVESONLY
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_CURVE_VISIBLE
@ ANIMFILTER_NODUPLIS
eAnimCont_Types datatype