diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-06 04:40:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-06 04:40:29 +0300 |
commit | 7c0d2ffb6451583189158bae13522b2d8f317ce8 (patch) | |
tree | af7a74e64da6e20f6ce7b67975e144d2f1660b1f /release/scripts/templates/operator_modal_draw.py | |
parent | 63bc8405faace74b39942bf0b8ed158bc8f756ad (diff) |
pep8 cleanup
Diffstat (limited to 'release/scripts/templates/operator_modal_draw.py')
-rw-r--r-- | release/scripts/templates/operator_modal_draw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/templates/operator_modal_draw.py b/release/scripts/templates/operator_modal_draw.py index 1f0d7a8504f..3c7c4409f50 100644 --- a/release/scripts/templates/operator_modal_draw.py +++ b/release/scripts/templates/operator_modal_draw.py @@ -20,7 +20,7 @@ def draw_callback_px(self, context): bgl.glEnd() - # restore opengl defaults + # restore opengl defaults bgl.glLineWidth(1) bgl.glDisable(bgl.GL_BLEND) bgl.glColor4f(0.0, 0.0, 0.0, 1.0) @@ -50,7 +50,7 @@ class ModalDrawOperator(bpy.types.Operator): def invoke(self, context, event): if context.area.type == 'VIEW_3D': context.manager.add_modal_handler(self) - + # Add the region OpenGL drawing callback # draw in view space with 'POST_VIEW' and 'PRE_VIEW' self._handle = context.region.callback_add(draw_callback_px, (self, context), 'POST_PIXEL') @@ -72,4 +72,4 @@ def unregister(): if __name__ == "__main__": - register()
\ No newline at end of file + register() |