Fixed handling of textures without fallback.

Earth now has same colour as atmosphere without a texture.
This commit is contained in:
Quantum 2013-11-25 17:04:27 -05:00
parent 5659439a8f
commit 77647d688f
2 changed files with 4 additions and 1 deletions

View file

@ -49,7 +49,7 @@
"rotation": -20996798
},
"earth": {
"texture": ["earth.jpg", "earth_medium.jpg", "earth_small.jpg", [0, 0.28, 1, 1]],
"texture": ["earth.jpg", "earth_medium.jpg", "earth_small.jpg", [0.11, 0.32, 0.43, 1]],
"radius": 6378.1,
"z": "AU",
"pitch": -90,

View file

@ -42,6 +42,9 @@ def get_best_texture(info, optional=False, loader=load_texture):
pass
else:
break
else:
cheap = True
texture = [1, 1, 1, 1]
else:
try:
texture = loader(info)