closes https://github.com/assimp/assimp/issues/1721: set camera parameters instead of nonsense.

This commit is contained in:
Kim Kulling
2018-01-24 21:20:34 +01:00
parent b43923a759
commit 0b15d5cd46
6 changed files with 41 additions and 55 deletions

View File

@@ -108,7 +108,7 @@ Property* ReadTypedProperty(const Element& element)
ParseTokenAsFloat(*tok[6]))
);
}
else if (!strcmp(cs,"double") || !strcmp(cs,"Number") || !strcmp(cs,"Float") || !strcmp(cs,"FieldOfView")) {
else if (!strcmp(cs,"double") || !strcmp(cs,"Number") || !strcmp(cs,"Float") || !strcmp(cs,"FieldOfView") || !strcmp( cs, "UnitScaleFactor" ) ) {
return new TypedProperty<float>(ParseTokenAsFloat(*tok[4]));
}
return NULL;
@@ -138,7 +138,6 @@ PropertyTable::PropertyTable()
{
}
// ------------------------------------------------------------------------------------------------
PropertyTable::PropertyTable(const Element& element, std::shared_ptr<const PropertyTable> templateProps)
: templateProps(templateProps)
@@ -229,8 +228,6 @@ DirectPropertyMap PropertyTable::GetUnparsedProperties() const
return result;
}
} //! FBX
} //! Assimp