Skip to content

Commit 2b81a03

Browse files
committed
Fix #595: Replace widget_label with widget
See https://projects.blender.org/blender/blender/issues/111712
1 parent b1a85c5 commit 2b81a03

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
@@ -505,7 +505,7 @@ def tree_preview_ui_callback():
505505
return
506506

507507
preferences = context.preferences
508-
label_style = preferences.ui_styles[0].widget_label
508+
label_style = preferences.ui_styles[0].widget
509509
size = label_style.points
510510
#calculate the zoom of the view by taking the difference of transformed points in the x-axis
511511
zoom = MaltNodeDrawCallbacks.get_view_zoom(context)

0 commit comments

Comments
 (0)