Fix SpeedTree compile error on Linux

This commit is contained in:
rdb 2010-10-09 14:55:28 +00:00
parent 67df80cd1b
commit ea4ca0e667

View File

@ -1492,6 +1492,8 @@ def SdkLocateSpeedTree():
# thirdparty dir, and pick the highest-numbered one.
speedtrees = []
dir = GetThirdpartyDir()
if not os.path.exists(dir):
return
for dirname in os.listdir(dir):
if dirname.startswith('SpeedTree SDK v'):
version = dirname[15:].split()[0]