Removed redundant ends with ‘fbx’ check.

This commit is contained in:
Anthony J. Thibault 2015-08-21 22:11:53 -07:00
parent 5e31d423b9
commit 80d3ae68c2

View file

@ -53,10 +53,9 @@ void AnimationReader::run() {
bool urlValid = true;
urlValid &= !urlname.isEmpty();
urlValid &= !_url.path().isEmpty();
urlValid &= _url.path().toLower().endsWith(".fbx");
if (urlValid) {
// Let's read the binaries from the network
// Parse the FBX directly from the QNetworkReply
FBXGeometry* fbxgeo = nullptr;
if (_url.path().toLower().endsWith(".fbx")) {
fbxgeo = readFBX(_reply, QVariantHash(), _url.path());