Python API
---------- Undo for part of previous commit. Campbell reminded me that UV texture faces aren't "users" like other objects, so removing the code which changes them.
This commit is contained in:
@@ -3743,14 +3743,10 @@ static int MFace_setImage( BPy_MFace *self, PyObject *value )
|
||||
|
||||
face = &self->mesh->mtface[self->index];
|
||||
|
||||
if( face->tpage )
|
||||
face->tpage->id.us--;
|
||||
|
||||
if( value == NULL || value == Py_None )
|
||||
face->tpage = NULL; /* should memory be freed? */
|
||||
else {
|
||||
face->tpage = ( ( BPy_Image * ) value )->image;
|
||||
face->tpage->id.us++;
|
||||
face->mode |= TF_TEX;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user