[Bf-python] Fwd: Re: 'obj.data' returns NMesh data object even when made with Mesh class.

Toni Alatalo antont at kyperjokki.fi
Mon Aug 6 11:47:50 CEST 2007


oops sent this first from a machine that was using a diff address, which is 
not on this list - also seems i forgot to mention that GetData() needs the 
optional argument to give a Mesh but at least that is clearly stated in the 
docs.

----------  Forwarded Message  ----------

On Aug 6, 2007, at 8:50 AM, Dietrich Bollmann wrote:

> When making a Mesh object the member 'data' returns a NMesh and
> not a Mesh data object.  Because of this an assignment of new

yep, this is 'by design' in the sense of retaining backwards 
compatibility. the GetData() method can be used to get as Mesh (which 
.data would do if it was introduced now).

i guess the new bpy api is now the way to get rid of such legacy.

in the meantime, i guess documentation improvements would be the thing 
to look at.

> Dietrich

~Toni



More information about the Bf-python mailing list