Fix T71986: Alembic: object constraints animation no longer exported
`AbcTransformWriter::hasAnimation` recently became smarter than just returning `true`, but wasn't quite smart enough yet. Constraints are now considered a source of 'animation'.
This commit is contained in:
parent
be1f4d875f
commit
e7c7707ca9
Notes:
blender-bot
2023-02-14 09:02:40 +01:00
Referenced by issue #71986, Alembic: object constraints animation no longer exported
|
@ -27,6 +27,7 @@
|
|||
extern "C" {
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
|
@ -133,7 +134,7 @@ Imath::Box3d AbcTransformWriter::bounds()
|
|||
|
||||
bool AbcTransformWriter::hasAnimation(Object *ob) const
|
||||
{
|
||||
return BKE_animdata_id_is_animated(&ob->id);
|
||||
return !BLI_listbase_is_empty(&ob->constraints) || BKE_animdata_id_is_animated(&ob->id);
|
||||
}
|
||||
|
||||
/* ************************************************************************** */
|
||||
|
|
Loading…
Reference in New Issue