Post #4862: Hello, I encountered an issue with PME when trying it on Blender 4.0.0 beta and
📋 Metadata
- Author: Pluglug
- Date: 2023-10-25 06:44:48
- Type:
bug_report - Quality Score: 9/10
🏷️ Tags
v1-18-7 modal-operator blender-compatibility intermediate solved
⚙️ Related PME Features
- Modal Operator
- Overlay
💬 Content
Hello, I encountered an issue with PME when trying it on Blender 4.0.0 beta and wanted to share the details for maintenance purposes.
Environment:
- Blender 4.0.0 beta
- Pie Menu Editor 1.18.7
Issue Description:
The blf.size function in Blender 4.0 no longer supports the dpi argument, necessitating updates to the overlay.py file in PME.
Reference to breaking changes: Breaking changes in 4.0
3.6 Documentation before changes
Symptoms:
-
Using PME Modal Operator results in the following error:
TypeError: blf.size() takes exactly 2 arguments (3 given)
-
Other features using Overlay do not produce errors but do not function properly.
Steps to Reproduce:
Note: The operations become unstable after the error, requiring a Blender restart.
- Create a new PME Modal Operator.
- Set any preferred hotkey, leaving other settings as is.
- Press the hotkey in the 3D Viewport to invoke the Modal Operator.
Expected behavior: The text “Modal Operator” should appear in the 3D Viewport.
Resolution:
Remove the third argument from blf.size.
Examples:
- Change
blf.size(0, *size, 72)toblf.size(0, *size) - Apply to lines 98, 177, and 183 in overlay.py
The script only uses the default value of dpi=72, so it should be backward compatible. Will report back if any issues arise from this change.
❤️ 8 likes