Revert to the FUTURE_PYTHON_API, this means:

- switching the define on in buildsystems (NaN, auto and msvc are done)
- again import _Blender, which is the C module, from the Python modules
This commit is contained in:
2003-02-06 03:30:25 +00:00
parent 0feac451ac
commit 6b65e39a44
29 changed files with 44 additions and 40 deletions

View File

@@ -51,7 +51,7 @@
from Blender.Types import NMFaceType
import Blender.Material as Material
#from _Blender import NMesh as _NMesh
from _Blender import NMesh as _NMesh
FACEFLAGS = _NMesh.Const
DEFAULTFLAGS = FACEFLAGS.LIGHT + FACEFLAGS.DYNAMIC
@@ -66,7 +66,7 @@ def makeFace(f):
return face
def toTriangles(ngon):
#from utils import tesselation
from utils import tesselation
# This should be a Publisher only feature...once the tesselation
# is improved. The GLU tesselator of Mesa < 4.0 is crappy...
if len(ngon.uv) == len(ngon.v):