diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 23:46:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-27 23:46:15 +0400 |
commit | cf8ebbf7516b2a151158f792a9e2b7cd59f0467d (patch) | |
tree | 29e78a0b20687e16660b9d5d6c165d50355acca2 /release/scripts/templates | |
parent | 124c55fcc3e377a2a6340d7dd64af1e1659497bd (diff) |
update for changes to blf module
Diffstat (limited to 'release/scripts/templates')
-rw-r--r-- | release/scripts/templates/operator_modal_draw.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/templates/operator_modal_draw.py b/release/scripts/templates/operator_modal_draw.py index 3c7c4409f50..98efa38e9ee 100644 --- a/release/scripts/templates/operator_modal_draw.py +++ b/release/scripts/templates/operator_modal_draw.py @@ -4,10 +4,12 @@ import blf def draw_callback_px(self, context): print("mouse points", len(self.mouse_path)) + font_id = 0 # XXX, need to find out how best to get this. + # draw some text - blf.position(15, 30, 0) - blf.size(20, 72) - blf.draw("Hello Word " + str(len(self.mouse_path))) + blf.position(font_id, 15, 30, 0) + blf.size(font_id, 20, 72) + blf.draw(font_id, "Hello Word " + str(len(self.mouse_path))) # 50% alpha, 2 pixel width line bgl.glEnable(bgl.GL_BLEND) |