|
Blender V5.3
|
Public Member Functions | |
| AnimDataConvertor (ConversionData &conversion_data, ID &id_src, const Array< AnimDataFCurveConvertor > fcurve_convertors={}) | |
| AnimDataConvertor (ConversionData &conversion_data, ID &id_dst, ID &id_src, const Array< AnimDataFCurveConvertor > fcurve_convertors={}) | |
| AnimDataConvertor ()=delete | |
| bool | source_has_animation_to_convert () const |
| void | fcurves_convert () |
| void | fcurves_convert_finalize () |
Public Attributes | |
| std::string | root_path_src |
| std::string | root_path_dst |
This class contains data and logic to handle conversion of animation data (FCurves).
It can be used to either:
RNA paths to convert can be specified in two ways:
Definition at line 141 of file grease_pencil_convert_legacy.cc.
|
inline |
Constructor to use when only processing FCurves within a same ID animation data.
Definition at line 194 of file grease_pencil_convert_legacy.cc.
|
inline |
Constructor to use when moving FCurves from one ID to another.
Definition at line 208 of file grease_pencil_convert_legacy.cc.
|
delete |
|
inline |
Convert relevant FCurves, i.e. modify their RNA path to match destination data.
Definition at line 443 of file grease_pencil_convert_legacy.cc.
References blender::AnimData::action, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::greasepencil::convert::AnimDataFCurveConvertor::convert_cb, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::greasepencil::convert::AnimDataFCurveConvertor::relative_rna_path_dst, blender::bke::greasepencil::convert::AnimDataFCurveConvertor::relative_rna_path_src, and blender::AnimData::tmpact.
Referenced by blender::bke::greasepencil::convert::legacy_object_modifier_common().
|
inline |
Finalize FCurves conversion. Typically, this AnimDataConvertor should not be used after this call.
Currently, this call merely ensure depsgraph update in case of conversion of animation data within a same ID.
When transferring animation between source and destination IDs, this call actually moves the processed fcurves accumulated by previous call(s) to fcurves_convert.
Definition at line 525 of file grease_pencil_convert_legacy.cc.
References blender::AnimData::action, blender::animrig::action_add(), blender::animrig::action_fcurve_move(), blender::animrig::assign_action(), blender::animrig::assign_tmpaction(), blender::BKE_animdata_ensure_id(), blender::BLI_addtail(), blender::BLI_assert(), BLI_assert_msg, blender::BLI_findindex(), blender::BLI_remlink(), blender::bke::greasepencil::convert::ConversionData::bmain, blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), blender::AnimData::drivers, blender::ID_RECALC_ANIMATION, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::animrig::Action::slot_add_for_id(), blender::AnimData::tmpact, and UNUSED_VARS_NDEBUG.
Referenced by blender::bke::greasepencil::convert::legacy_object_modifier_common(), and blender::bke::greasepencil::convert::legacy_object_thickness_modifier_thickness_anim().
|
inline |
Check whether the source animation data contains FCurves that need to be converted/moved to the destination animation data.
Definition at line 398 of file grease_pencil_convert_legacy.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::is_empty().
| std::string blender::bke::greasepencil::convert::AnimDataConvertor::root_path_dst |
Definition at line 174 of file grease_pencil_convert_legacy.cc.
Referenced by blender::bke::greasepencil::convert::legacy_object_modifier_common().
| std::string blender::bke::greasepencil::convert::AnimDataConvertor::root_path_src |
Source and destination RNA root path. These can be modified by user code at any time (e.g. when processing animation data for different modifiers...).
Definition at line 173 of file grease_pencil_convert_legacy.cc.
Referenced by blender::bke::greasepencil::convert::legacy_object_modifier_common(), and blender::bke::greasepencil::convert::legacy_object_modifier_opacity().