diff options
Diffstat (limited to 'source/blender/io/usd/intern/usd_writer_abstract.cc')
-rw-r--r-- | source/blender/io/usd/intern/usd_writer_abstract.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/blender/io/usd/intern/usd_writer_abstract.cc b/source/blender/io/usd/intern/usd_writer_abstract.cc index 4d0b4364fb5..76a2436ee92 100644 --- a/source/blender/io/usd/intern/usd_writer_abstract.cc +++ b/source/blender/io/usd/intern/usd_writer_abstract.cc @@ -21,13 +21,6 @@ #include <pxr/base/tf/stringUtils.h> -extern "C" { -#include "BKE_animsys.h" -#include "BKE_key.h" - -#include "DNA_modifier_types.h" -} - /* TfToken objects are not cheap to construct, so we do it once. */ namespace usdtokens { // Materials @@ -85,31 +78,6 @@ void USDAbstractWriter::write(HierarchyContext &context) frame_has_been_written_ = true; } -bool USDAbstractWriter::check_is_animated(const HierarchyContext &context) const -{ - const Object *object = context.object; - - if (BKE_animdata_id_is_animated(static_cast<ID *>(object->data))) { - return true; - } - if (BKE_key_from_object(object) != nullptr) { - return true; - } - - /* Test modifiers. */ - /* TODO(Sybren): replace this with a check on the depsgraph to properly check for dependency on - * time. */ - ModifierData *md = static_cast<ModifierData *>(object->modifiers.first); - while (md) { - if (md->type != eModifierType_Subsurf) { - return true; - } - md = md->next; - } - - return false; -} - const pxr::SdfPath &USDAbstractWriter::usd_path() const { return usd_export_context_.usd_path; |