mmmrqs / bl_ui_widgets

UI Widgets for Blender 2.8 and newer versions
GNU General Public License v3.0
46 stars 5 forks source link

replace bgl with gpu module #10

Closed atticus-lv closed 1 year ago

atticus-lv commented 1 year ago

Notice that the blender will remove bgl in 4.0(or 3.6 maybe), we should change it earlier

mmmrqs commented 1 year ago

Notice that the blender will remove bgl in 4.0(or 3.6 maybe), we should change it earlier

Hi @atticus-lv - thanks for the heads up. That upgrade is in my to-do list, but I do not have any estimate re when I am going to have time for doing that. Blender is really a moving target.

atticus-lv commented 1 year ago

Hi @mmmrqs, just open a pr #11 to fix this, I am sure that it can work well on the example, may you take a little while to check it? image

mmmrqs commented 1 year ago

@atticus-lv, thank you so much for providing the changes, that is much helpful and appreciated. I accepted the pull request and have the code merged. There was a little thing of my own that went together with this release, just a new 'time_step' class level property that I've added so that the developer can customize the interval in seconds between timer events. On the bl_ui_widget.py I noticed that there were many changes in your version regarding pep-8 standards which I haven't accepted them all because sometimes I prefer to compromise the standards in order to have better reading of similar clustered data (using extra spaces for alignment, for example). I can change my mind in the future though.