Merge remote-tracking branch 'origin/blender-v4.4-release'

This commit is contained in:
Sybren A. Stüvel
2025-02-06 17:50:09 +01:00

View File

@@ -29,6 +29,8 @@
using namespace blender;
/* Disabled for now, see comment in `rna_def_action_layer()` for more info. */
#if 0
const EnumPropertyItem rna_enum_layer_mix_mode_items[] = {
{int(animrig::Layer::MixMode::Replace),
"REPLACE",
@@ -57,6 +59,7 @@ const EnumPropertyItem rna_enum_layer_mix_mode_items[] = {
"Channels in this layer are multiplied with underlying layers on a per-channel basis"},
{0, nullptr, 0, nullptr, nullptr},
};
#endif
const EnumPropertyItem rna_enum_strip_type_items[] = {
{int(animrig::Strip::Type::Keyframe),
@@ -127,11 +130,14 @@ static animrig::Strip &rna_data_strip(const PointerRNA *ptr)
return reinterpret_cast<ActionStrip *>(ptr->data)->wrap();
}
/* Disabled for now, see comment in `rna_def_action_layer()` for more info. */
# if 0
static void rna_Action_tag_animupdate(Main * /*main*/, Scene * /*scene*/, PointerRNA *ptr)
{
animrig::Action &action = rna_action(ptr);
DEG_id_tag_update(&action.id, ID_RECALC_ANIMATION);
}
# endif
static animrig::Channelbag &rna_data_channelbag(const PointerRNA *ptr)
{
@@ -2214,6 +2220,12 @@ static void rna_def_action_layer(BlenderRNA *brna)
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
RNA_def_struct_name_property(srna, prop);
/* Disabled in RNA until layered animation is actually implemented.
*
* The animation evaluation already takes these into account, but there is no guarantee that the
* mixing that is currently implemented is going to be mathematically identical to the eventual
* implementation. */
# if 0
prop = RNA_def_property(srna, "influence", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_range(prop, 0.0f, 1.0f);
RNA_def_property_ui_text(
@@ -2229,6 +2241,7 @@ static void rna_def_action_layer(BlenderRNA *brna)
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_enum_items(prop, rna_enum_layer_mix_mode_items);
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN, "rna_Action_tag_animupdate");
# endif
/* Collection properties. */
prop = RNA_def_property(srna, "strips", PROP_COLLECTION, PROP_NONE);