correct api doc examples and a typo
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user