If you request an empty Brush-Texturelayer, GetBrushTexture() returns an non valid texture-handle, insteed of 0.
cu Shodan
I can confirm this. I remember there was a work around in my latest SaveB3D code, see archives.
@jfk EO-11110
doesn´t found your SaveB3D code. please show me where.