Post #1752: The bgl module which PME uses for text color, was removed from 2.8. I’m sure [@r

📋 Metadata

  • Author: iceythe
  • Date: 2018-12-10 22:28:32
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01751

🏷️ Tags

v1-20-x pie-menu compatibility intermediate solved

  • Pie Menu Editor
  • Overlay rendering

💬 Content

The bgl module which PME uses for text color, was removed from 2.8. I’m sure @roaoao will post an official fix for it soon.

In the mean time, the text can be restored by changing some lines in overlay.py in the addon folder.
Out of respect to the author, I only post the steps, not the file.

  1. Comment out import bgl

  2. Find and replace bgl.glColor4f(*self.style.color) with blf.color(1, *self.style.color)

  3. Find and replace bgl.glColor4f(r, g, b, a) with blf.color(0, r, g, b, a)

  4. Comment out all bgl lines starting on around line 274

  5. Search for any other lines containing bgl and comment them out

This brings back the overlay with color abilities.


❤️ 2 likes


🔗 View on Blender Artists