- fbx: pre-filter animated property we don't support as early as possible.

This commit is contained in:
Alexander Gessler
2012-08-26 18:40:04 +02:00
parent 51d84dcfc0
commit 5bc573edb8
3 changed files with 109 additions and 48 deletions

View File

@@ -1745,11 +1745,17 @@ private:
// reverse mapping from curves to layers, much faster than querying
// the FBX DOM for it.
LayerMap layer_map;
const char* prop_whitelist[] = {
"Lcl Scaling",
"Lcl Rotation",
"Lcl Translation"
};
BOOST_FOREACH(const AnimationLayer* layer, layers) {
ai_assert(layer);
const AnimationCurveNodeList& nodes = layer->Nodes();
const AnimationCurveNodeList& nodes = layer->Nodes(prop_whitelist, 3);
BOOST_FOREACH(const AnimationCurveNode* node, nodes) {
ai_assert(node);