[Bf-python] NMesh Mesh getMode- incionststant

Campbell Barton cbarton at metavr.com
Sat Feb 26 13:23:30 CET 2005


Hi All, mesh.getMode() and mesh.setMode() use differernt syntax.
Check the docs- I think setMode needs to be modified to use flags, like 
most of the other modes too.

Atm-
mesh.setMode('Optimal', 'Twoside')

and

if mesh.getMode() & NMesh.Modes['OPTIMAL']:


Not consistand...
Hopw will we handle this?
I can make a fix for this and send in the patch, but It will be hard to 
keep backward compatability.

I had a look in the Blender scripts dir and none of teh scripts actually 
use getMode or setMode, mabe we can just not be backwards conmpatable... 
and have the error raised indicate that thge syntax has changed.
Any ideas?>
-Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list