fix for misc py errors + some pep8 edits.
[blender.git] / doc / python_api / examples / bge.texture.1.py
index faa0ae736e83eefc4e0ff3ec166f93d3820f0254..4be6f51de67cf2aefed4333f3f15e7bdcfe891ec 100644 (file)
@@ -14,7 +14,7 @@ def createTexture(cont):
     object = cont.owner
 
     # get the reference pointer (ID) of the internal texture
-    ID = texture.materialID(obj, 'IMoriginal.png')
+    ID = texture.materialID(object, 'IMoriginal.png')
 
     # create a texture object
     object_texture = texture.Texture(object, ID)