diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-28 17:57:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-28 17:57:26 +0300 |
commit | ed7f4f2e3cc19e6c90b678b87617d2a19ddc3da3 (patch) | |
tree | 9cd8cb96e8e34d5f0a9d96785a5ce028e8d5c21f /release/scripts/templates | |
parent | c1cd33e166fa0b0f9419ec9d8a19d124452019d3 (diff) |
make BGL and BLF modile names lowercase
Diffstat (limited to 'release/scripts/templates')
-rw-r--r-- | release/scripts/templates/operator_modal_draw.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/release/scripts/templates/operator_modal_draw.py b/release/scripts/templates/operator_modal_draw.py index 0cf2dede4ce..1f0d7a8504f 100644 --- a/release/scripts/templates/operator_modal_draw.py +++ b/release/scripts/templates/operator_modal_draw.py @@ -1,29 +1,29 @@ -import BGL -import BLF +import bgl +import blf def draw_callback_px(self, context): print("mouse points", len(self.mouse_path)) # draw some text - BLF.position(15, 30, 0) - BLF.size(20, 72) - BLF.draw("Hello Word " + str(len(self.mouse_path))) + blf.position(15, 30, 0) + blf.size(20, 72) + blf.draw("Hello Word " + str(len(self.mouse_path))) # 50% alpha, 2 pixel width line - BGL.glEnable(BGL.GL_BLEND) - BGL.glColor4f(0.0, 0.0, 0.0, 0.5) - BGL.glLineWidth(2) + bgl.glEnable(bgl.GL_BLEND) + bgl.glColor4f(0.0, 0.0, 0.0, 0.5) + bgl.glLineWidth(2) - BGL.glBegin(BGL.GL_LINE_STRIP) + bgl.glBegin(bgl.GL_LINE_STRIP) for x, y in self.mouse_path: - BGL.glVertex2i(x, y) + bgl.glVertex2i(x, y) - BGL.glEnd() + bgl.glEnd() # restore opengl defaults - BGL.glLineWidth(1) - BGL.glDisable(BGL.GL_BLEND) - BGL.glColor4f(0.0, 0.0, 0.0, 1.0) + bgl.glLineWidth(1) + bgl.glDisable(bgl.GL_BLEND) + bgl.glColor4f(0.0, 0.0, 0.0, 1.0) class ModalDrawOperator(bpy.types.Operator): |