[Bf-funboard] Debugging bug #18968

Martin Poirier theeth at yahoo.com
Tue Jul 7 21:31:44 CEST 2009




--- On Tue, 7/7/09, Early Ehlinger <earlye at gmail.com> wrote:

> From: Early Ehlinger <earlye at gmail.com>
> Subject: [Bf-funboard] Debugging bug #18968
> To: bf-funboard at blender.org
> Received: Tuesday, July 7, 2009, 3:14 PM
> This is in reference to
> https://projects.blender.org/tracker/index.php?func=detail&aid=18968&group_id=9&atid=125
> 
> So in debugging this, I'm learning a lot about blender
> internals, which is
> fun.
> 
> We have a script that uses python to load a .blend file,
> e.g., by calling
> Blender.Load(...)
> 
> The error "only .blend files can be loaded from the command
> line..." is
> issued in:
> 
> /source/blender/python/api2_2x/blender.c (686):
> Blender_Load( ).
> 
> Apparently, Blender_Load opens the file and checks to see
> that the first 4
> bytes are "BLEN," and if not, assumes that the file is not
> a .blend file,
> resulting in this error message.
> 
> I have a customer who swears that the .blend files he is
> sending me were
> created in Blender 2.49, straight from the web site, and
> yet they fail the
> "BLEN" test above.  In fact, they start with
> 0x1f,0x0x8b,0x08,0x00 - I have
> no idea what that indicates - anybody have any tips?

The API doesn't check for compressed files. (that's the bug). You can unzip them manually and then it should work.

Martin


      __________________________________________________________________
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/


More information about the Bf-funboard mailing list