mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Fix bug when right clicking an operator button in the interface
This commit is contained in:
@@ -385,6 +385,8 @@ class BIM_PT_misc_object(Panel):
|
|||||||
|
|
||||||
|
|
||||||
def draw_custom_context_menu(self, context):
|
def draw_custom_context_menu(self, context):
|
||||||
|
if not hasattr(context, "button_pointer") or not hasattr(context, "button_prop"):
|
||||||
|
return
|
||||||
# https://blender.stackexchange.com/a/275555/86891
|
# https://blender.stackexchange.com/a/275555/86891
|
||||||
prop = context.button_pointer
|
prop = context.button_pointer
|
||||||
prop_name = context.button_prop.identifier
|
prop_name = context.button_prop.identifier
|
||||||
|
|||||||
Reference in New Issue
Block a user