Post #3584: @roaoao In the latest master I noticed a bug. When adding a regul
📋 Metadata
- Author: Julien_Kaspar
- Date: 2020-09-17 15:05:57
- Type:
bug_report - Quality Score: 8/10
- Replies (1): post_03587
🏷️ Tags
v1-20-x pie-menu menu-nesting advanced unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Regular Menu Items
- Mouse Over Open Option
💬 Content
@roaoao In the latest master I noticed a bug. When adding a regular menu as an item to a regular menu with the option “Open on Mouse Over” it will give an error message when trying to open the menu in the first place:
Python: Traceback (most recent call last):
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/operators.py", line 2106, in invoke
return self.execute_menu(context, event)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/operators.py", line 1920, in execute_menu
context.window_manager.popup_menu(self._draw_rm, pm.name)
File "/media/data/blender_guest/cmake_release/bin/2.91/scripts/modules/bpy_types.py", line 158, in popup_menu
draw_func(popup, bpy.context)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/operators.py", line 1669, in _draw_rm
self.__class__.draw_rm(pr.pie_menus[self.pie_menu_name], menu.layout)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/operators.py", line 1665, in draw_rm
WM_OT_pme_user_pie_menu_call._draw_item(pr, pm, pmi, idx)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/operators.py", line 1435, in _draw_item
pmi.rm_class, text, icon, use_mouse_over_open=True)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/layout_helper.py", line 184, in menu
use_mouse_over_open=True)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/layout_helper.py", line 82, in menu
c_btn = CTU.c_last_btn(c_layout)
File "/home/guest/.config/blender/2.91/scripts/addons/pie_menu_editor/c_utils.py", line 545, in c_last_btn
clayout.root.contents.block.contents.buttons.last,
ValueError: NULL pointer access
location: <unknown location>:-1