From 1ce6d47ae74fdd5cc1b29680d9cf4379bab89e72 Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Thu, 8 Feb 2001 19:20:11 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/tkpanels/ParticlePanel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/src/tkpanels/ParticlePanel.py b/direct/src/tkpanels/ParticlePanel.py index 8a3e986bb6..24b2e21fa9 100644 --- a/direct/src/tkpanels/ParticlePanel.py +++ b/direct/src/tkpanels/ParticlePanel.py @@ -989,7 +989,11 @@ class ParticlePanel(AppShell): def saveParticleEffectToFile(self): # Find path to particle directory - path = getParticlePath().getDirectory(0).toOsSpecific() + pPath = getParticlePath() + if pPath.getNumDirectories() > 0: + path = pPath.getDirectory(0).toOsSpecific() + else: + path = '' if not os.path.isdir(path): print 'LevelEditor Warning: Invalid default DNA directory!' print 'Using: C:\\'