Shriinivas / blenderbezierutils

Blender Add-on with Bezier Utility Ops
GNU General Public License v3.0
536 stars 65 forks source link

BGL to be discontinued in 3.7 #54

Closed CurtisDitto closed 1 year ago

CurtisDitto commented 2 years ago

Using bezierutils in 3.5 beta, and this error is coming up:

image

And this: WARN (bgl): source/blender/python/generic/bgl.c:2656 BPyInit_bgl: 'bgl' imported without an OpenGL backend. Please update your add-ons to use the 'gpu' module. In Blender 3.7 'bgl' will be removed.

Everything still works if I use OpenGL instead of Metal.

Looked at the code a bit, and looks like bgl is only used for determining line width and point size, such as with bgl.glPointSize(MarkerController.defPointSize. Also read up that this may be the only way to change pointsize and line width, although I have to admit that the ability to change line width and point size as a custom preference never worked for me in the first place. I tried commenting out the bgl lines and no longer receive any errors, and everything seems to work as well as it did before.

Shriinivas commented 1 year ago

This is fixed, please check with Blender ver 4.