object_collection_manager: replace deprecated bgl module #104547
No reviewers
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104547
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "(deleted):oxicid-cm-bgl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
No response
In this addon bgl was used in 3 cases, in the other 4 I did not understand how and where it was used
Hi, I'm the creator and maintainer of the Collection Manager add-on, so I'll be reviewing your PR :)
I'm not exactly sure what you're referring to by "No response". If you're referring to the conversation in #80730 then it turned out that bgl was not getting removed in 3.4.
I'm also not sure what you mean by the other 4. Can you clarify?
Aside from one comment I left in the code, this seems good to me, so thanks for the PR.
@ -9,2 +9,2 @@
"version": (2, 24, 4),
"blender": (2, 80, 0),
"version": (2, 24, 5),
"blender": (3, 4, 0),
I like to keep this to the minimum version of Blender the add-on will work with, which from my tests just now on Linux seems to be 2.93. So unless this is different on other platforms could you please set it to 2.93?
I looked more closely, everything is involved.
About the minimum version, I just do not know which version introduced new methods for gpu module, and decided to set it to 3.4 for sure. To be sure I checked with 2.93, everything works
Ah, okay. Makes sense. Thanks for changing it and the additional checking.
LGTM. Thanks.
I'll hold off on merging this until after the weekend so @mano-wii has a chance to respond if they want.
Thanks for the patch but
line_width_set
doesn't work on MACOS and will surely be deprecated.Use the
'POLYLINE_SMOOTH_COLOR'
shader instead. (The3D_
or2D_
prefixes make no difference and were kept only for backward compatibility).You can check examples in #80730. One that might help is the node_wrangler.py (
d37c2abc6f
) one.@ -100,3 +99,1 @@
bgl.glLineWidth(thickness)
bgl.glEnable(bgl.GL_LINE_SMOOTH)
bgl.glHint(bgl.GL_LINE_SMOOTH_HINT, bgl.GL_NICEST)
gpu.state.line_width_set(thickness)
line_width_set
should no longer be used.Pull request closed