correct api doc examples and a typo

This commit is contained in:
2012-01-05 05:43:35 +00:00
parent be025ea319
commit cce9c43295
3 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class CustomDrawOperator(bpy.types.Operator):
my_string = bpy.props.StringProperty(name="String Value")
def execute(self, context):
print()
print("Test", self)
return {'FINISHED'}
def invoke(self, context, event):

View File

@@ -31,6 +31,7 @@ class ModalOperator(bpy.types.Operator):
def execute(self, context):
context.object.location.x = self.value / 100.0
return {'FINISHED'}
def modal(self, context, event):
if event.type == 'MOUSEMOVE': # Apply