sgefants patch to remove the License Key stuff.
(I noticed its not completely gone yet from the blender/source dir) But its a big step in the right direction if it doesn't enable all of the functionatlity already... (Using cscope for LICENSE_KEY_VALID still turns up some stuff) Kent -- mein@cs.umn.edu
This commit is contained in:
@@ -311,20 +311,10 @@ struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, short newx, short newy);
|
||||
*/
|
||||
short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags);
|
||||
|
||||
/**
|
||||
* This function pointer needs to be initialized to enable
|
||||
* png writing from the ImBuf library.
|
||||
*
|
||||
* @attention Defined in writeimage.c
|
||||
* @attention See also IMB_png_encode()
|
||||
*/
|
||||
extern short (*IMB_fp_png_encode)(struct ImBuf *ibuf, int file, int flags);
|
||||
|
||||
/**
|
||||
* Encodes a png image from an ImBuf
|
||||
*
|
||||
* @attention Defined in png_encode.c
|
||||
* @attention See also IMB_fp_png_encode
|
||||
*/
|
||||
short IMB_png_encode(struct ImBuf *ibuf, int file, int flags);
|
||||
|
||||
|
@@ -58,10 +58,8 @@
|
||||
#endif
|
||||
|
||||
|
||||
short (*IMB_fp_png_encode)(struct ImBuf *ibuf, int file, int flags) = 0;
|
||||
|
||||
short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
|
||||
{
|
||||
{
|
||||
short ok=TRUE,delpl=FALSE;
|
||||
int file = -1;
|
||||
|
||||
@@ -81,8 +79,8 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
|
||||
}
|
||||
}
|
||||
|
||||
if (IS_png(ibuf) && IMB_fp_png_encode) {
|
||||
ok = IMB_fp_png_encode(ibuf,file,flags);
|
||||
if (IS_png(ibuf)) {
|
||||
ok = IMB_png_encode(ibuf,file,flags);
|
||||
if (ok) {
|
||||
close (file);
|
||||
return (ok);
|
||||
|
Reference in New Issue
Block a user