Fix: build fails when experimental features are disabled

Caused by using a function behind an experimental feature `ifdef`
in non-experimental code. The fix is to move the function out from
behind the `ifdef`, since it's perfectly fine to use in non-experimental
code.
This commit is contained in:
Nathan Vegdahl
2024-09-16 11:01:54 +02:00
parent 0311d8082b
commit 68a6317207

View File

@@ -97,13 +97,13 @@ const EnumPropertyItem rna_enum_strip_type_items[] = {
# include <fmt/format.h>
# ifdef WITH_ANIM_BAKLAVA
static animrig::Action &rna_action(const PointerRNA *ptr)
{
return reinterpret_cast<bAction *>(ptr->owner_id)->wrap();
}
# ifdef WITH_ANIM_BAKLAVA
static animrig::Slot &rna_data_slot(const PointerRNA *ptr)
{
BLI_assert(ptr->type == &RNA_ActionSlot);