Merged changes in the trunk up to revision 42116.

This commit is contained in:
2011-11-26 13:11:55 +00:00
267 changed files with 3952 additions and 2521 deletions

View File

@@ -11,13 +11,13 @@ from bge import texture
def createTexture(cont):
"""Create a new Dynamic Texture"""
object = cont.owner
obj = cont.owner
# get the reference pointer (ID) of the internal texture
ID = texture.materialID(object, 'IMoriginal.png')
ID = texture.materialID(obj, 'IMoriginal.png')
# create a texture object
object_texture = texture.Texture(object, ID)
object_texture = texture.Texture(obj, ID)
# create a new source with an external image
url = logic.expandPath("//newtexture.jpg")