diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-08 09:42:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-08 09:42:44 +0400 |
commit | 7500f4cd488b90f30cd72c1a25e6cc5a1fe8c55b (patch) | |
tree | 8471071cccae5f645bb46c9e0ec8b75662463b09 /doc | |
parent | c61827ed255432637a335dcff12745c156f619fb (diff) |
fix for misc py errors + some pep8 edits.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bge.texture.1.py | 2 | ||||
-rw-r--r-- | doc/python_api/examples/bpy.types.Operator.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bge.texture.1.py b/doc/python_api/examples/bge.texture.1.py index faa0ae736e8..4be6f51de67 100644 --- a/doc/python_api/examples/bge.texture.1.py +++ b/doc/python_api/examples/bge.texture.1.py @@ -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) diff --git a/doc/python_api/examples/bpy.types.Operator.py b/doc/python_api/examples/bpy.types.Operator.py index 52edfa0a61b..0981712e1ff 100644 --- a/doc/python_api/examples/bpy.types.Operator.py +++ b/doc/python_api/examples/bpy.types.Operator.py @@ -21,7 +21,7 @@ class HelloWorldOperator(bpy.types.Operator): print("Hello World") return {'FINISHED'} -bpy.utils.register_class(SimpleOperator) +bpy.utils.register_class(HelloWorldOperator) # test call to the newly defined operator bpy.ops.wm.hello_world() |