Fix sample_binary.py to use latest EndVector without a size. (#6478)
This commit is contained in:
parent
e6b911d40c
commit
5e3613f732
|
@ -55,13 +55,13 @@ def main():
|
||||||
# Note: Since we prepend the bytes, this loop iterates in reverse order.
|
# Note: Since we prepend the bytes, this loop iterates in reverse order.
|
||||||
for i in reversed(range(0, 10)):
|
for i in reversed(range(0, 10)):
|
||||||
builder.PrependByte(i)
|
builder.PrependByte(i)
|
||||||
inv = builder.EndVector(10)
|
inv = builder.EndVector()
|
||||||
|
|
||||||
MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2)
|
MyGame.Sample.Monster.MonsterStartWeaponsVector(builder, 2)
|
||||||
# Note: Since we prepend the data, prepend the weapons in reverse order.
|
# Note: Since we prepend the data, prepend the weapons in reverse order.
|
||||||
builder.PrependUOffsetTRelative(axe)
|
builder.PrependUOffsetTRelative(axe)
|
||||||
builder.PrependUOffsetTRelative(sword)
|
builder.PrependUOffsetTRelative(sword)
|
||||||
weapons = builder.EndVector(2)
|
weapons = builder.EndVector()
|
||||||
|
|
||||||
pos = MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0)
|
pos = MyGame.Sample.Vec3.CreateVec3(builder, 1.0, 2.0, 3.0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue