Removed references to modules that do not exist. The python interface is
broken, but it should give 0 errors when building. Michel
This commit is contained in:
@@ -1 +1 @@
|
||||
from _Blender.BGL import *
|
||||
#from _Blender.BGL import *
|
||||
|
@@ -15,7 +15,7 @@ Example::
|
||||
"""
|
||||
|
||||
import shadow
|
||||
import _Blender.Camera as _Camera
|
||||
#import _Blender.Camera as _Camera
|
||||
|
||||
|
||||
class Camera(shadow.hasIPO):
|
||||
|
@@ -1 +1 @@
|
||||
from _Blender.Draw import *
|
||||
#from _Blender.Draw import *
|
||||
|
@@ -8,7 +8,7 @@
|
||||
im = Image.Load('dead-parrot.jpg')
|
||||
"""
|
||||
|
||||
import _Blender.Image as _Image
|
||||
#import _Blender.Image as _Image
|
||||
import shadow
|
||||
|
||||
class Image(shadow.shadow):
|
||||
|
@@ -31,7 +31,7 @@ Example::
|
||||
ob.setIpo(ipo) # assign ipo to object
|
||||
"""
|
||||
|
||||
import _Blender.Ipo as _Ipo
|
||||
#import _Blender.Ipo as _Ipo
|
||||
|
||||
import shadow
|
||||
|
||||
|
@@ -11,7 +11,7 @@ Example::
|
||||
ob.link(l)
|
||||
"""
|
||||
|
||||
import _Blender.Lamp as _Lamp
|
||||
#import _Blender.Lamp as _Lamp
|
||||
import shadow
|
||||
|
||||
_validBufferSizes = [512, 768, 1024, 1536, 2560]
|
||||
|
@@ -14,7 +14,7 @@
|
||||
Scene.getCurrent().link(ob) # link object to current scene
|
||||
"""
|
||||
|
||||
import _Blender.Material as _Material
|
||||
#import _Blender.Material as _Material
|
||||
import shadow
|
||||
#import Blender.Curve as Curve
|
||||
|
||||
|
@@ -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):
|
||||
|
@@ -6,7 +6,7 @@
|
||||
most probably limited. Use the 'Mesh' module instead.
|
||||
"""
|
||||
|
||||
import _Blender.NMesh as _NMesh
|
||||
#import _Blender.NMesh as _NMesh
|
||||
import shadow
|
||||
|
||||
class Mesh(shadow.shadow):
|
||||
|
@@ -17,7 +17,7 @@
|
||||
ob.makeParent([actobj]) # make ob the parent of actobj
|
||||
"""
|
||||
|
||||
import _Blender.Object as _Object
|
||||
#import _Blender.Object as _Object
|
||||
|
||||
import shadow
|
||||
reload(shadow) # XXX
|
||||
@@ -98,7 +98,7 @@ class Object(shadow.hasIPO):
|
||||
the Object's type, so you cannot link a Lamp to a mesh type Object.
|
||||
'data' can also be an Ipo object (IpoBlock)
|
||||
"""
|
||||
from _Blender import Types
|
||||
#from _Blender import Types
|
||||
# special case for NMesh:
|
||||
if type(data) == Types.NMeshType:
|
||||
return self._object.link(data)
|
||||
@@ -146,7 +146,7 @@ original. The returned object is *free*, meaning, not linked to any scene."""
|
||||
def getDeformData(self):
|
||||
"""Returns the Datablock object containing the object's deformed data.
|
||||
Currently, this is only supported for a Mesh"""
|
||||
import _Blender.NMesh as _NMesh
|
||||
#import _Blender.NMesh as _NMesh
|
||||
t = self._object.getType()
|
||||
if t == self.Types['Mesh']:
|
||||
data = _NMesh.GetRawFromObject(self.name)
|
||||
|
@@ -14,7 +14,7 @@
|
||||
newscene.link(cam)
|
||||
newscene.makeCurrent() # make current Scene
|
||||
"""
|
||||
import _Blender.Scene as _Scene
|
||||
#import _Blender.Scene as _Scene
|
||||
|
||||
from Object import Object
|
||||
import shadow
|
||||
|
@@ -11,7 +11,7 @@
|
||||
Text.unlink(text) # delete
|
||||
"""
|
||||
|
||||
import _Blender.Text as _Text
|
||||
#import _Blender.Text as _Text
|
||||
|
||||
class Text:
|
||||
"""Wrapper for Text DataBlock"""
|
||||
|
@@ -1 +1 @@
|
||||
from _Blender.Types import *
|
||||
#from _Blender.Types import *
|
||||
|
@@ -4,7 +4,7 @@ This module currently only supports redrawing commands of windows.
|
||||
Later on, it will allow screen manipulations and access to Window
|
||||
properties"""
|
||||
|
||||
import _Blender.Window as _Window
|
||||
#import _Blender.Window as _Window
|
||||
|
||||
t = _Window.Types
|
||||
Const = t # emulation
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import _Blender.World as _World
|
||||
#import _Blender.World as _World
|
||||
|
||||
import shadow
|
||||
|
||||
|
@@ -6,7 +6,7 @@ __all__ = ["Object", "Image", "NMesh", "Window", "Mesh", "sys",
|
||||
"Lamp", "Scene", "Draw", "Camera", "Material", "Types", "Ipo",
|
||||
"BGL"]
|
||||
|
||||
import _Blender
|
||||
#import _Blender
|
||||
|
||||
Get = _Blender.Get
|
||||
Redraw = _Blender.Redraw
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from _Blender.sys import *
|
||||
#from _Blender.sys import *
|
||||
|
||||
sep = dirsep # path separator ('/' or '\')
|
||||
|
||||
|
Reference in New Issue
Block a user