Python API

----------
Add optional string argument to Object.newParticleSystem() method, so that
objects can link to existing particle systems (if the name of the particle
system is known).  Also cleans up some code in Object.c which accesses the
particle sys listbase.
This commit is contained in:
Ken Hughes
2008-10-08 16:37:33 +00:00
parent bfe2759ceb
commit 5fd6e7e1b7
3 changed files with 43 additions and 33 deletions

View File

@@ -656,9 +656,13 @@ class Object:
Return a list of particle systems linked to this object (see Blender.Particle).
"""
def newParticleSystem():
def newParticleSystem(name = None):
"""
Link a new particle system (see Blender.Particle).
Link a particle system (see Blender.Particle). If no name is
given, a new particle system is created. If a name is given and a
particle system with that name exists, it is linked to the object.
@type name: string
@param name: The name of the requested Particle system (optional).
"""
def addVertexGroupsFromArmature(object):