[Bf-python] Re: Your obj importer

Willian Padovani Germano wgermano at ig.com.br
Sun Jun 6 05:52:42 CEST 2004


----- Original Message -----
From: "Campbell Barton" <cbarton at metavr.com>
To: "Willian Padovani Germano" <wgermano at ig.com.br>; <bf-python at blender.org>
Sent: Sunday, June 06, 2004 12:12 AM
Subject: [Bf-python] Re: Your obj importer

> Hi, Im clearing some bugs in the OBJ importer.
>
> Mainly the material one (I think its a blender bug.)
> Check thios out..

(...)

It's probably comparing the pyobjects and they are different.  The right thing
to do, though, is to compare the blender materials, so indeed we should be able
to fix this in BPython.  It was done for cameras and other objects, Material was
not updated accordingly.  We need to add a tp_compare method to the BPy_Material
(Material_Type) table.

Would you like to try yourself?  Just check Camera.c, for example, looking for
tp_compare.  You need to write the compare method for materials (just like the
camera one, no difficulty) and declare it at the type table.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list