Skip to content

Commit 949bc4f

Browse files
committed
UnpackInts/Quats speed improvement
1 parent e36862a commit 949bc4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎UnityPy/classes/AnimationClip.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def save(self, writer):
129129
writer.align_stream()
130130

131131
def UnpackInts(self):
132-
data = []
132+
data = [0] * self.m_NumItems
133133
indexPos = 0
134134
bitPos = 0
135135
m_BitSize = self.m_BitSize
@@ -158,7 +158,7 @@ def __init__(self, reader):
158158

159159
def UnpackQuats(self):
160160
m_Data = self.m_Data
161-
data = []
161+
data = [None]*self.m_NumItems
162162
indexPos = 0
163163
bitPos = 0
164164

0 commit comments

Comments
 (0)