mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
correct api doc examples and a typo
This commit is contained in:
parent
be025ea319
commit
cce9c43295
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue