2023-11-07 05:42:52 +01:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-11-03 10:55:10 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* \ingroup animrig
|
|
|
|
*
|
|
|
|
* \brief Helper functions for animation to interact with the RNA system.
|
|
|
|
*/
|
|
|
|
|
2023-12-21 19:40:45 +01:00
|
|
|
#include "BLI_string_ref.hh"
|
2023-11-03 10:55:10 +01:00
|
|
|
#include "BLI_vector.hh"
|
2023-12-21 10:50:17 +01:00
|
|
|
#include "DNA_action_types.h"
|
2023-11-03 10:55:10 +01:00
|
|
|
#include "RNA_types.hh"
|
|
|
|
|
|
|
|
namespace blender::animrig {
|
|
|
|
|
|
|
|
/** Get the values of the given property. Casts non-float properties to float. */
|
2023-11-03 12:03:35 +01:00
|
|
|
Vector<float> get_rna_values(PointerRNA *ptr, PropertyRNA *prop);
|
2023-11-03 10:55:10 +01:00
|
|
|
|
2023-12-21 10:50:17 +01:00
|
|
|
/** Get the rna path for the given rotation mode. */
|
2023-12-21 19:40:45 +01:00
|
|
|
StringRef get_rotation_mode_path(eRotationModes rotation_mode);
|
2023-12-21 10:50:17 +01:00
|
|
|
|
2023-11-03 10:55:10 +01:00
|
|
|
} // namespace blender::animrig
|