jayanam / bl_ui_widgets

UI Widgets for Blender 2.8
GNU General Public License v3.0
150 stars 38 forks source link

Button image upper right corner has wrong coordinates. (with solution) #15

Closed vilemduha closed 3 years ago

vilemduha commented 3 years ago

bl_ui_button.py - from line 88 should be:

vertices = ( (self.x_screen + off_x, y_screen_flip - off_y), (self.x_screen + off_x, y_screen_flip - sy - off_y), (self.x_screen + off_x + sx, y_screen_flip - sy - off_y), (self.x_screen + off_x + sx, y_screen_flip - off_y))

Currently there's a - off_x on the last coorinate Y which draws the corner offset on non-square offset values.

jayanam commented 3 years ago

Fixed with 0.6.4.1