Skip to content

Commit

Permalink
Fix blf.size dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
pragma37 committed Mar 29, 2024
1 parent 95d44e2 commit fd35ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlenderMalt/MaltNodes/Nodes/MaltGroupNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def draw_buttons(self, context, layout):

def calc_node_width(self, point_size, dpi) -> float:
import blf
blf.size(0, point_size, dpi)
blf.size(0, point_size * (dpi / 72.0))

button_padding = 150 #Magic number to account for the other buttons on the node UI
if getattr(self.group, 'users', 0) > 1:
Expand Down

0 comments on commit fd35ae5

Please sign in to comment.