Skip to content

Commit c73ab79

Browse files
committed
Fix crash upon import in last release
1 parent 7342cd9 commit c73ab79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blender/MapsModelsImporter/google_maps_rd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def extractRelevantCalls(self, drawcalls, _strategy=4):
163163
min_drawcall = 0
164164
while True:
165165
skipped_drawcalls, new_min_drawcall = self.findDrawcallBatch(drawcalls[min_drawcall:], first_call, drawcall_prefix, last_call)
166-
if self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
166+
if not skipped_drawcalls or self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
167167
break
168168
min_drawcall += new_min_drawcall
169169
elif _strategy == 6:

0 commit comments

Comments
 (0)