Blender V5.0
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
8
9#include "DNA_action_types.h"
10#include "DNA_anim_types.h"
11
12#include "BLI_set.hh"
13
14#include "BKE_fcurve.hh"
15
16#include "ANIM_action.hh"
17#include "ANIM_action_legacy.hh"
18
19namespace blender::animrig {
20
22{
23 for (FCurve *fcu : legacy::fcurves_all(&action)) {
25 }
26}
27
29{
30 Set<bAction *> visited_actions;
31 for (bAction *action : actions) {
32 if (!visited_actions.add(action)) {
33 continue;
34 }
35 action_deselect_keys(action->wrap());
36 }
37}
38
39} // namespace blender::animrig
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
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)