Blender V4.3
action_selection.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "DNA_action_types.h"
10#include "DNA_anim_types.h"
11
12#include "BLI_listbase.h"
13#include "BLI_set.hh"
14
15#include "BKE_anim_data.hh"
16#include "BKE_fcurve.hh"
17
18#include "ANIM_action.hh"
19#include "ANIM_action_legacy.hh"
20#include "ANIM_fcurve.hh"
21
22namespace blender::animrig {
23
25{
26 for (FCurve *fcu : legacy::fcurves_all(&action)) {
28 }
29}
30
32{
33 Set<bAction *> visited_actions;
34 for (bAction *action : actions) {
35 if (!visited_actions.add(action)) {
36 continue;
37 }
38 action_deselect_keys(action->wrap());
39 }
40}
41
42} // namespace blender::animrig
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
Functions to modify FCurves.
void BKE_fcurve_deselect_all_keys(FCurve &fcu)
bool add(const Key &key)
Definition BLI_set.hh:248
Vector< const FCurve * > fcurves_all(const bAction *action)
void action_deselect_keys(Action &action)
void deselect_keys_actions(blender::Span< bAction * > actions)