fix for misc py errors + some pep8 edits.

This commit is contained in:
Campbell Barton
2011-09-08 05:42:44 +00:00
parent c61827ed25
commit 7500f4cd48
7 changed files with 16 additions and 14 deletions

View 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)

View File

@@ -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()