Skip to content

Commit

Permalink
Merge pull request #38 from tomvantilburg/master
Browse files Browse the repository at this point in the history
Fix crash when checking for self.vLight
  • Loading branch information
loicgasser authored Sep 3, 2019
2 parents 6df5b15 + 0eaf6c5 commit b204b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantized_mesh_tile/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def _writeTo(self, f):
f.write(packEntry(meta['northIndices'], ni))

# Extension header for light
if self.vLight:
if len(self.vLight) > 0:
self.hasLighting = True
meta = TerrainTile.ExtensionHeader
# Extension header ID is 1 for lightening
Expand Down

0 comments on commit b204b35

Please sign in to comment.