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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'measureit/measureit_geometry.py')
-rw-r--r--measureit/measureit_geometry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py
index 3b2e0186..e0b036d6 100644
--- a/measureit/measureit_geometry.py
+++ b/measureit/measureit_geometry.py
@@ -831,9 +831,9 @@ def draw_text(myobj, pos2d, display_text, rgb, fsize, align='L', text_rot=0.0):
# -------------------
for line in mylines:
text_width, text_height = blf.dimensions(font_id, line)
- if align is 'C':
+ if align == 'C':
newx = x_pos - text_width / 2
- elif align is 'R':
+ elif align == 'R':
newx = x_pos - text_width - gap
else:
newx = x_pos
@@ -851,7 +851,7 @@ def draw_text(myobj, pos2d, display_text, rgb, fsize, align='L', text_rot=0.0):
if maxwidth < text_width:
maxwidth = text_width
- if align is 'L':
+ if align == 'L':
blf.disable(font_id, ROTATION)
return maxwidth, maxheight