[Bf-python] NMesh.setSubDivLevels and level 0

Stephane SOPPERA stephane.soppera at wanadoo.fr
Sat Jan 1 02:42:15 CET 2005


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.

Thanks in advance,

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





More information about the Bf-python mailing list