Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-23 02:32:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-23 02:32:58 +0300
commit97bdfe6f1bbd4413693654362876de6395642da9 (patch)
treeaf90a9730d66c54de01d8add4366eac11fbafbfe /release/scripts/templates
parenta8d364ce4accb900c690229925356ba2ffabdc74 (diff)
pep8 cleanup + correction for external player operator return value.
Diffstat (limited to 'release/scripts/templates')
-rw-r--r--release/scripts/templates/operator_modal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/templates/operator_modal.py b/release/scripts/templates/operator_modal.py
index ff3863ff59a..ee2e134dbde 100644
--- a/release/scripts/templates/operator_modal.py
+++ b/release/scripts/templates/operator_modal.py
@@ -4,7 +4,7 @@ class ModalOperator(bpy.types.Operator):
'''Move an object with the mouse, example.'''
bl_idname = "object.modal_operator"
bl_label = "Simple Modal Operator"
-
+
first_mouse_x = IntProperty()
first_value = FloatProperty()
@@ -19,7 +19,7 @@ class ModalOperator(bpy.types.Operator):
elif event.type in ('RIGHTMOUSE', 'ESCAPE'):
context.object.location.x = self.properties.first_value
return {'CANCELLED'}
-
+
return {'RUNNING_MODAL'}
def invoke(self, context, event):
@@ -36,4 +36,4 @@ class ModalOperator(bpy.types.Operator):
bpy.types.register(ModalOperator)
if __name__ == "__main__":
- bpy.ops.object.modal_operator() \ No newline at end of file
+ bpy.ops.object.modal_operator()