loicgasser / quantized-mesh-tile

Quantized-Mesh encoder/decoder and topology builder
MIT License
89 stars 20 forks source link

Crash on check if vLight exists #37

Closed tomvantilburg closed 5 years ago

tomvantilburg commented 5 years ago

in terrain.py line 653: if self.vLight: should become if len(self.vLight) > 0: since self.vLight is a list.

Currently it results in a numpy error mentioning The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()