Blender Git Loki

Git Commits -> Revision e57ce84

Revision e57ce84 by Ken Hughes (master)
March 21, 2006, 23:30 (GMT)


===Python API===
Two small bugfixes:
* Image.New() resets id.us to 0; it is set to 1 by new_image()
* allow ima.depth and ima.size getters to propagate their own error
messages (missing image was returning MemoryError)

Also, seems to me there's something funny going on with image id.us
accounting. In do_image_buttons(), id.us is set whenever an image is
accessed vi the datablock menu:

if(idtest!=id) {
G.sima->image= (Image *)idtest;
if(idtest->us==0) idtest->us= 1;
allqueue(REDRAWIMAGE, 0);
}

This is independent of whether a UV face is selected or not (and it also
seems that the number of UV faces linked to an image is not maintained
either).

Commit Details:

Full Hash: e57ce8489b7fa14f1dd8bd3eebb8e71e92ae9705
SVN Revision: 7110
Parent Commit: 742ba52
Lines Changed: +5, -3

1 Modified Path:

/source/blender/python/api2_2x/Image.c (+5, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021