- fbx: add support for reading Null node attributes.

This commit is contained in:
Alexander Gessler
2012-08-25 20:12:53 +02:00
parent 4921114c7d
commit eed3cebc18
3 changed files with 34 additions and 1 deletions

View File

@@ -64,7 +64,12 @@ NodeAttribute::NodeAttribute(uint64_t id, const Element& element, const Document
const Scope& sc = GetRequiredScope(element);
const std::string& classname = ParseTokenAsString(GetRequiredToken(element,2));
props = GetPropertyTable(doc,"NodeAttribute.Fbx" + classname,element,sc);
// hack on the deriving type but Null attributes are the only case in which
// the property table is by design absent and no warning should be generated
// for it.
const bool is_null = !strcmp(classname.c_str(), "Null");
props = GetPropertyTable(doc,"NodeAttribute.Fbx" + classname,element,sc, is_null);
}
@@ -132,6 +137,21 @@ Light::~Light()
{
}
// ------------------------------------------------------------------------------------------------
Null::Null(uint64_t id, const Element& element, const Document& doc, const std::string& name)
: NodeAttribute(id,element,doc,name)
{
}
// ------------------------------------------------------------------------------------------------
Null::~Null()
{
}
}
}