Skip to content

Commit fdea517

Browse files
committed
Merge branch 'Development' into node-groups
2 parents beb92ef + e1eda97 commit fdea517

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BlenderMalt/MaltNodes/MaltNode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def adjust_width(width, text, scale=1, padding=0):
274274
return max_width
275275

276276
def setup_width(self):
277-
point_size = bpy.context.preferences.ui_styles[0].widget_label.points
277+
point_size = bpy.context.preferences.ui_styles[0].widget.points
278278
self.width = self.calc_node_width(point_size)
279279

280280
def get_source_name(self):

BlenderMalt/MaltNodes/MaltNodeUITools.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def draw_modal_interface(operator: 'OT_MaltCycleSubCategories') -> None:
260260
return
261261

262262
prefs = context.preferences
263-
label_style = prefs.ui_styles[0].widget_label
263+
label_style = prefs.ui_styles[0].widget
264264
zoom = MaltNodeDrawCallbacks.get_view_zoom(context)
265265
dpifac = MaltNodeDrawCallbacks.get_dpifac(context)
266266
to_region_loc = MaltNodeDrawCallbacks.real_region_loc
@@ -581,7 +581,7 @@ def tree_preview_ui_callback():
581581
return
582582

583583
preferences = context.preferences
584-
label_style = preferences.ui_styles[0].widget_label
584+
label_style = preferences.ui_styles[0].widget
585585
size = label_style.points
586586
#calculate the zoom of the view by taking the difference of transformed points in the x-axis
587587
zoom = MaltNodeDrawCallbacks.get_view_zoom(context)

0 commit comments

Comments
 (0)