[Bf-python] NMesh.setSubDivLevels and level 0

Stephane SOPPERA stephane.soppera at wanadoo.fr
Mon Jan 3 21:02:56 CET 2005


Stephane SOPPERA wrote:

> Hi,
>
> While trying to make a script that change the subdivisions values of 
> meshes, I noticed two issues in NMesh.setSubDivLevels function.
> First this function only accept a range of value from 1 to 6 whereas 
> the buttons in the interface enables to go from 0 to 6. 0 is 
> especially usefull to speedup the display of subdivided surfaces that 
> are not edited.
> Second, when subdivision levels are updated through python, the values 
> in the buttons are not updated.
>
> Could setSubDivLevels function accept 0 level?
> As far as I know, the only modifications needed is to change the line
> #define NMESH_SUBDIV_MIN            1
> in NMesh.c.

Nobody want to make this trivial change?

Regards,
Stephane

-- 
Stephane SOPPERA
http://perso.wanadoo.fr/stephane.soppera 





More information about the Bf-python mailing list