diff --git a/code/FBXProperties.cpp b/code/FBXProperties.cpp index 8914cea9c..6c5433d74 100644 --- a/code/FBXProperties.cpp +++ b/code/FBXProperties.cpp @@ -82,7 +82,7 @@ Property* ReadTypedProperty(const Element& element) if (!strcmp(cs,"KString")) { return new TypedProperty(ParseTokenAsString(*tok[4])); } - else if (!strcmp(cs,"bool")) { + else if (!strcmp(cs,"bool") || !strcmp(cs,"Bool")) { return new TypedProperty(ParseTokenAsInt(*tok[4]) != 0); } else if (!strcmp(cs,"int") || !strcmp(cs,"enum")) { @@ -105,12 +105,13 @@ Property* ReadTypedProperty(const Element& element) ParseTokenAsFloat(*tok[6])) ); } - else if (!strcmp(cs,"double") || !strcmp(cs,"Number") || !strcmp(cs,"KTime")) { + else if (!strcmp(cs,"double") || !strcmp(cs,"Number") || !strcmp(cs,"KTime") || !strcmp(cs,"Float")) { return new TypedProperty(ParseTokenAsFloat(*tok[4])); } return NULL; } + // ------------------------------------------------------------------------------------------------ // peek into an element and check if it contains a FBX property, if so return its name. std::string PeekPropertyName(const Element& element) @@ -134,6 +135,7 @@ PropertyTable::PropertyTable() { } + // ------------------------------------------------------------------------------------------------ PropertyTable::PropertyTable(const Element& element, boost::shared_ptr templateProps) : templateProps(templateProps) @@ -162,6 +164,7 @@ PropertyTable::PropertyTable(const Element& element, boost::shared_ptr