Skip to content

Commit 6e27eaf

Browse files
author
David Aguilar
committed
partedit: correct handling of vector fields
When the values input is shorter than the vector length then we need to extend the values field so that we can we can replace it with its casted value.
1 parent 220a2d6 commit 6e27eaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/tools/partedit.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ def addAttributeSlot(self):
10691069
value = values[i]
10701070
else:
10711071
value = values[-1]
1072+
values.append(value)
10721073
if attrType == partio.INT or attrType == partio.INDEXEDSTR:
10731074
values[i] = int(value)
10741075
elif attrType == partio.FLOAT or attrType == partio.VECTOR:

0 commit comments

Comments
 (0)