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-24 18:56:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-24 18:56:27 +0300
commita9307a4dd3190811a633c3f4d7556d81c8610642 (patch)
tree9f4c110a37f5210185b96d262c998edcb8b8bba8 /release/scripts/templates/operator_modal.py
parent03590eb8a928ddb8ccab95189a9ebfeb311bd140 (diff)
[#21295] Escape key doesn't cancel python modal operators
also fix distance with lamps being negative for typed in values.
Diffstat (limited to 'release/scripts/templates/operator_modal.py')
-rw-r--r--release/scripts/templates/operator_modal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates/operator_modal.py b/release/scripts/templates/operator_modal.py
index ee2e134dbde..b2839efabe4 100644
--- a/release/scripts/templates/operator_modal.py
+++ b/release/scripts/templates/operator_modal.py
@@ -16,7 +16,7 @@ class ModalOperator(bpy.types.Operator):
elif event.type == 'LEFTMOUSE':
return {'FINISHED'}
- elif event.type in ('RIGHTMOUSE', 'ESCAPE'):
+ elif event.type in ('RIGHTMOUSE', 'ESC'):
context.object.location.x = self.properties.first_value
return {'CANCELLED'}