- fbx: animation conversion from fbx's representation to assimp's. This involves evaluating animation layers etc.

This commit is contained in:
Alexander Gessler
2012-07-21 04:15:10 +02:00
parent 711878567a
commit 382f4619ad
4 changed files with 362 additions and 2 deletions

View File

@@ -96,6 +96,7 @@ AnimationCurve::~AnimationCurve()
// ------------------------------------------------------------------------------------------------
AnimationCurveNode::AnimationCurveNode(uint64_t id, const Element& element, const std::string& name, const Document& doc)
: Object(id, element, name)
, target()
{
// resolve attached animation curves
const std::vector<const Connection*>& conns = doc.GetConnectionsByDestinationSequenced(ID());
@@ -118,7 +119,9 @@ AnimationCurveNode::AnimationCurveNode(uint64_t id, const Element& element, cons
DOMWarning("source object for ->AnimationCurveNode link is not an AnimationCurve",&element);
continue;
}
curves[con->PropertyName()] = anim;
prop = con->PropertyName();
curves[prop] = anim;
}
}