From ea4ca0e6679e6a925cf834eddbe59cb53b9969c5 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 9 Oct 2010 14:55:28 +0000 Subject: [PATCH] Fix SpeedTree compile error on Linux --- makepanda/makepandacore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 093fcd3f17..85796a9430 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -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]