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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user