Python API

----------
Bugfix/enhancement: allow image of mesh's UV faces to be removed/cleared by
"del f.image" or "f.image = None", and handle image user counts correctly
when assigning/clearing images.
This commit is contained in:
Ken Hughes
2006-12-20 22:56:58 +00:00
parent 006647fd22
commit 368928220d
2 changed files with 18 additions and 11 deletions

View File

@@ -537,7 +537,8 @@ class MFace:
Getting this attribute throw an exception if the mesh does not have
UV faces; use L{Mesh.faceUV} to test.
Assigning an image will automatically set the TEX attribute of the
L{mode} bitfield.
L{mode} bitfield. Use "del f.image" or "f.image = None" to clear the
image assigned to the face.
@type image: Image
@ivar mode: The texture mode bitfield (see L{FaceModes}).
Will throw an exception if the mesh does not have UV faces; use