Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-18 17:47:25 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-18 17:47:25 +0300
commitbb31648b9b4d676b66be126f1842fa4a654f5fa1 (patch)
treef643827f9e08d994d5f20f21e5b09dfd65805f84 /tests
parent2c29b94384d2c556563a3126563704a7e1173c65 (diff)
parent5bdbc88ab81891eff0dafaabf7f58a9c865d6e48 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'tests')
-rwxr-xr-xtests/python/alembic_tests.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/python/alembic_tests.py b/tests/python/alembic_tests.py
index 845b9bd6288..155cbd545f0 100755
--- a/tests/python/alembic_tests.py
+++ b/tests/python/alembic_tests.py
@@ -128,6 +128,7 @@ class AbstractAlembicTest(unittest.TestCase):
converters = {
'bool_t': int,
'uint8_t': int,
+ 'int16_t': int,
'int32_t': int,
'float64_t': float,
'float32_t': float,
@@ -141,7 +142,13 @@ class AbstractAlembicTest(unittest.TestCase):
info = lines.popleft()
if not info:
continue
- proptype, valtype_and_arrsize, name_and_extent = info.split()
+ parts = info.split()
+ proptype = parts[0]
+
+ if proptype == 'CompoundProperty':
+ # To read those, call self.abcprop() on it.
+ continue
+ valtype_and_arrsize, name_and_extent = parts[1:]
# Parse name and extent
m = self.abcls_array.match(name_and_extent)
@@ -291,6 +298,9 @@ class CurveExportTest(AbstractAlembicTest):
abcprop = self.abcprop(abc, '/NurbsCurve/NurbsCurveShape/.geom')
self.assertEqual(abcprop['.orders'], [4])
+ abcprop = self.abcprop(abc, '/NurbsCurve/NurbsCurveShape/.geom/.userProperties')
+ self.assertEqual(abcprop['blender:resolution'], 10)
+
if __name__ == '__main__':
parser = argparse.ArgumentParser()