diff options
author | Andy Nichols <andy.nichols@qt.io> | 2018-05-28 12:25:16 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2018-05-28 10:53:11 +0000 |
commit | 9d89536db50d7cf5fe873e94053f61baa9dd293a (patch) | |
tree | cea59c2fe75483821240861188d0daa113b1dc14 /tests/auto | |
parent | 58f54fde6c6a99225cefca183ec29f612177cb31 (diff) |
When no part in model mesh with sub-meshes use last instead of first
This resolves an issue with .mesh files generated by older versions of
Q3DS that stored revisions in the .mesh file. The models did not
explicitly specify a part number for the latest revision, so the oldest
revision would be used instead because that was part #1.
Now when a mesh source has no part number, we will by default use the
last mesh in the mesh list. This will still typically be #1 because non-
submesh meshes still will only have 1 part entry.
Task-number: QT3DS-1791
Change-Id: I8c9633c545c2f4f1fa325d9b0a28ab5981acd3b6
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/uipparser/tst_q3dsuipparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/uipparser/tst_q3dsuipparser.cpp b/tests/auto/uipparser/tst_q3dsuipparser.cpp index f6a5d5a..e93eb3b 100644 --- a/tests/auto/uipparser/tst_q3dsuipparser.cpp +++ b/tests/auto/uipparser/tst_q3dsuipparser.cpp @@ -195,7 +195,7 @@ void tst_Q3DSUipParser::assetRef() part = -123; fn = pres->assetFileName("something", &part); QCOMPARE(fn, QLatin1String(":/data/something")); - QCOMPARE(part, 1); + QCOMPARE(part, -1); fn = pres->assetFileName("/absolute/blah#32", &part); QCOMPARE(fn, QLatin1String("/absolute/blah")); |