mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
try-except around particle load
This commit is contained in:
parent
36853fa4c3
commit
2a4eed754c
@ -204,10 +204,13 @@ class ParticleEffect(NodePath):
|
|||||||
|
|
||||||
def loadConfig(self, filename):
|
def loadConfig(self, filename):
|
||||||
"""loadConfig(filename)"""
|
"""loadConfig(filename)"""
|
||||||
if vfs:
|
try:
|
||||||
exec vfs.readFile(filename)
|
if vfs:
|
||||||
else:
|
exec vfs.readFile(filename)
|
||||||
execfile(filename.toOsSpecific())
|
else:
|
||||||
|
execfile(filename.toOsSpecific())
|
||||||
|
except:
|
||||||
|
self.notify.error('loadConfig: failed to load particle file: '+filename)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user