mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
90dd7a343a
commit
16864fb8e4
@ -173,11 +173,11 @@ class Particles(ParticleSystem.ParticleSystem):
|
|||||||
"""stop(self)"""
|
"""stop(self)"""
|
||||||
taskMgr.removeTasksNamed('update-particles')
|
taskMgr.removeTasksNamed('update-particles')
|
||||||
|
|
||||||
def saveFileData(self, filename):
|
def saveConfig(self, filename):
|
||||||
"""saveFileData(self, filename)"""
|
"""saveFileData(self, filename)"""
|
||||||
fname = Filename(filename)
|
#fname = Filename(filename)
|
||||||
fname.resolveFilename(getParticlePath())
|
#fname.resolveFilename(getParticlePath())
|
||||||
fname.resolveFilename(getModelPath())
|
#fname.resolveFilename(getModelPath())
|
||||||
f = open(fname.toOsSpecific(), 'a')
|
f = open(fname.toOsSpecific(), 'a')
|
||||||
# Add a blank line
|
# Add a blank line
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
@ -186,15 +186,15 @@ class Particles(ParticleSystem.ParticleSystem):
|
|||||||
# Close the file
|
# Close the file
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def getFileData(self, filename):
|
def loadConfig(self, filename):
|
||||||
"""getFileData(self, filename)
|
"""getFileData(self, filename)
|
||||||
Open the specified file and strip out unwanted whitespace and
|
Open the specified file and strip out unwanted whitespace and
|
||||||
empty lines. Return file as list, one file line per element.
|
empty lines. Return file as list, one file line per element.
|
||||||
"""
|
"""
|
||||||
fname = Filename(filename)
|
#fname = Filename(filename)
|
||||||
fname.resolveFilename(getParticlePath())
|
#fname.resolveFilename(getParticlePath())
|
||||||
fname.resolveFilename(getModelPath())
|
#fname.resolveFilename(getModelPath())
|
||||||
execfile(fname.toOsSpecific())
|
execfile(filename.toOsSpecific())
|
||||||
|
|
||||||
def printParams(self, file = sys.stdout):
|
def printParams(self, file = sys.stdout):
|
||||||
"""printParams(self, file)"""
|
"""printParams(self, file)"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user