[Bf-python] Bug?
Willian Padovani Germano
wgermano at ig.com.br
Thu Feb 5 03:12:17 CET 2004
You're right Manuel,
----- Original Message -----
From: "Manuel Bastioni" <manuelbastioni at tin.it>
To: <Bf-python at blender.org>
Sent: Tuesday, February 03, 2004 9:55 AM
Subject: [Bf-python] Bug?
> This return message:
> HAS FACEUV: 0
>
>
> import Blender
> obj = Blender.Object.Get("Base")
> obj_mesh = obj.getData()
> obj_mesh.hasFaceUV(1)
> print "HAS FACEUV: ", obj_mesh.hasFaceUV()
NMesh_hasFaceUV() function in NMesh.c was inverted: 0 would set uv to
"on" and non-zero values would unset it.
The error went unnoticed because if an nmesh had uv data, it would be
used by mesh.update() or PutRaw() even if the flag had not been set.
Anyway, now the function is fixed, I'll commit later this week.
Thanks Manuel, you caught an oldie : ). Much probably, it's been there
since NMesh's earliest days, years ago.
--
Willian, wgermano at ig.com.br
More information about the Bf-python
mailing list