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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
commit0457976a872000993202763abe7503c76b461122 (patch)
treea4998fbbb768c43eb00b55ba311d497fd74eadcd /mesh_extra_tools
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'mesh_extra_tools')
-rw-r--r--mesh_extra_tools/mesh_pen_tool.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mesh_extra_tools/mesh_pen_tool.py b/mesh_extra_tools/mesh_pen_tool.py
index f57e080a..cd11f582 100644
--- a/mesh_extra_tools/mesh_pen_tool.py
+++ b/mesh_extra_tools/mesh_pen_tool.py
@@ -127,7 +127,7 @@ def draw_callback_px(self, context):
pt_buf.depth_location
)
blf.position(font_id, pt_buf.x + 15, pt_buf.y - 15, 0)
- blf.size(font_id, font_size, context.user_preferences.system.dpi)
+ blf.size(font_id, font_size, context.preferences.system.dpi)
blf.draw(font_id,
'(' + str(round(mloc3d[0], 4)) + ', ' + str(round(mloc3d[1], 4)) +
', ' + str(round(mloc3d[2], 4)) + ')')
@@ -155,7 +155,7 @@ def draw_callback_px(self, context):
)
vec0 = pt_buf.list_m_loc_3d[-1] - m_loc_3d
blf.position(font_id, pt_buf.x + 15, pt_buf.y + 15, 0)
- blf.size(font_id, font_size, context.user_preferences.system.dpi)
+ blf.size(font_id, font_size, context.preferences.system.dpi)
blf.draw(font_id, str(round(vec0.length, 4)))
# angle first after mouse
@@ -180,7 +180,7 @@ def draw_callback_px(self, context):
)
bgl.glColor4f(0.0, 1.0, 0.525, alpha)
blf.position(font_id, loc_4[0] + 10, loc_4[1] + 10, 0)
- blf.size(font_id, font_size, context.user_preferences.system.dpi)
+ blf.size(font_id, font_size, context.preferences.system.dpi)
blf.draw(font_id, text_0 + '')
bgl.glLineStipple(4, 0x5555)
@@ -219,7 +219,7 @@ def draw_callback_px(self, context):
(pt_buf.list_m_loc_3d[k] + pt_buf.list_m_loc_3d[(k + 1) % n]) * 0.5
)
blf.position(font_id, loc_3[0] + 10, loc_3[1] + 10, 0)
- blf.size(font_id, font_size, context.user_preferences.system.dpi)
+ blf.size(font_id, font_size, context.preferences.system.dpi)
blf.draw(font_id,
str(round((pt_buf.list_m_loc_3d[k] - pt_buf.list_m_loc_3d[(k + 1) % n]).length, 4)))
@@ -246,12 +246,12 @@ def draw_callback_px(self, context):
)
bgl.glColor4f(0.0, 1.0, 0.525, alpha)
blf.position(font_id, loc_4[0] + 10, loc_4[1] + 10, 0)
- blf.size(font_id, font_size, context.user_preferences.system.dpi)
+ blf.size(font_id, font_size, context.preferences.system.dpi)
blf.draw(font_id, str(round(degrees(ang), 2)) + '')
# tools on / off
bgl.glColor4f(1.0, 1.0, 1.0, 1.0)
blf.position(font_id, self.text_location, 20, 0)
- blf.size(font_id, 15, context.user_preferences.system.dpi)
+ blf.size(font_id, 15, context.preferences.system.dpi)
blf.draw(font_id, "Draw On")
blf.position(font_id, self.text_location, 40, 0)
blf.draw(font_id, "Extrude On" if pt_buf.ctrl else "Extrude Off")
@@ -501,7 +501,7 @@ class pen_tool_operator(Operator):
if context.area.type == 'VIEW_3D':
# pre-compute the text location (thanks to the Carver add-on)
self.text_location = 100
- overlap = context.user_preferences.system.use_region_overlap
+ overlap = context.preferences.system.use_region_overlap
for region in context.area.regions:
if region.type == "WINDOW":
self.text_location = region.width - 100