Trying to fix bug reported by Peter den Bak and Meino Christian Cramer (thanks!):

-- splash screen disappeared (duh, I did that!) and Blender quits upon exiting from some 225 games:

It was troublesome to find how to run demos in general with the screen correctly redrawn before they started, etc.  Ended up making the above error in screenmain().  About the games, I don't have them and will need some time to get the files for testing, but I'll do it, though only on linux.

BPython:
-- Window: added GetScreens, SetScreen and improved GetScreenInfo.
-- Object, NMesh: updated (added in NMesh) method getMaterials to return either only valid materials as before or also empty slots (as None).  This previous omission can be considered a bug, since it made info about materials incomplete / incompatible with face mat indices.  Thanks Yann Vernier for bringing this up and sending/proposing a patch that also fixed a bug related to assigning lists of materials with different lengths to obj and its mesh. setMaterials also accepts Py_None entries now, which become empty slots in Blender.
-- doc updates.
This commit is contained in:
2004-07-20 08:16:46 +00:00
parent 9bf1655070
commit 7b3b3ae432
15 changed files with 451 additions and 222 deletions

View File

@@ -277,9 +277,12 @@ class Object:
@return: a python action.
"""
def getMaterials():
def getMaterials(what = 0):
"""
Returns a list of materials assigned to the object.
@type what: int
@param what: if nonzero, empty slots will be returned as None's instead
of being ignored (default way). See L{NMesh.NMesh.getMaterials}.
@rtype: list of Material Objects
@return: list of Material Objects assigned to the object.
"""
@@ -492,7 +495,7 @@ class Object:
def shareFrom(object):
"""
Link data of self with object specified in the argument. This works only
Link data of object specified in the argument with self. This works only
if self and the object specified are of the same type.
@type object: Blender Object
@param object: A Blender Object of the same type.
@@ -710,4 +713,4 @@ class Property:
"""
Get the type for this property.
@rtype: string
"""
"""