Skip to content

Commit

Permalink
Merge branch 'Release' into Development
Browse files Browse the repository at this point in the history
  • Loading branch information
pragma37 committed Jan 13, 2025
2 parents 351d497 + 2b81a03 commit e1eda97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BlenderMalt/MaltNodes/MaltNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def adjust_width(width, text, scale=1, padding=0):
return max_width

def setup_width(self):
point_size = bpy.context.preferences.ui_styles[0].widget_label.points
point_size = bpy.context.preferences.ui_styles[0].widget.points
self.width = self.calc_node_width(point_size)

def get_source_name(self):
Expand Down
4 changes: 2 additions & 2 deletions BlenderMalt/MaltNodes/MaltNodeUITools.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def draw_modal_interface(operator: 'OT_MaltCycleSubCategories') -> None:
return

prefs = context.preferences
label_style = prefs.ui_styles[0].widget_label
label_style = prefs.ui_styles[0].widget
zoom = MaltNodeDrawCallbacks.get_view_zoom(context)
dpifac = MaltNodeDrawCallbacks.get_dpifac(context)
to_region_loc = MaltNodeDrawCallbacks.real_region_loc
Expand Down Expand Up @@ -505,7 +505,7 @@ def tree_preview_ui_callback():
return

preferences = context.preferences
label_style = preferences.ui_styles[0].widget_label
label_style = preferences.ui_styles[0].widget
size = label_style.points
#calculate the zoom of the view by taking the difference of transformed points in the x-axis
zoom = MaltNodeDrawCallbacks.get_view_zoom(context)
Expand Down

0 comments on commit e1eda97

Please sign in to comment.