Skip to content

Commit

Permalink
Fix crash upon import in last release
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Apr 2, 2021
1 parent 7342cd9 commit c73ab79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blender/MapsModelsImporter/google_maps_rd.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def extractRelevantCalls(self, drawcalls, _strategy=4):
min_drawcall = 0
while True:
skipped_drawcalls, new_min_drawcall = self.findDrawcallBatch(drawcalls[min_drawcall:], first_call, drawcall_prefix, last_call)
if self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
if not skipped_drawcalls or self.hasUniform(skipped_drawcalls[0], "_uMeshToWorldMatrix"):
break
min_drawcall += new_min_drawcall
elif _strategy == 6:
Expand Down

0 comments on commit c73ab79

Please sign in to comment.