- fbx: read local transforms (different modes of rotation not yet implemented, though).

This commit is contained in:
Alexander Gessler
2012-07-05 17:06:15 +02:00
parent 3179e949bb
commit 4db113395c
3 changed files with 50 additions and 3 deletions

View File

@@ -91,7 +91,14 @@ Property* ReadTypedProperty(const Element& element)
else if (!strcmp(cs,"ULongLong")) {
return new TypedProperty<uint64_t>(ParseTokenAsID(*tok[4]));
}
else if (!strcmp(cs,"Vector3D") || !strcmp(cs,"ColorRGB") || !strcmp(cs,"Vector") || !strcmp(cs,"Color")) {
else if (!strcmp(cs,"Vector3D") ||
!strcmp(cs,"ColorRGB") ||
!strcmp(cs,"Vector") ||
!strcmp(cs,"Color") ||
!strcmp(cs,"Lcl Translation") ||
!strcmp(cs,"Lcl Rotation") ||
!strcmp(cs,"Lcl Scaling")
) {
return new TypedProperty<aiVector3D>(aiVector3D(
ParseTokenAsFloat(*tok[4]),
ParseTokenAsFloat(*tok[5]),
@@ -187,7 +194,6 @@ const Property* PropertyTable::Get(const std::string& name) const
}
}
ai_assert((*it).second);
return (*it).second;
}