Fix UI errors in Blender 4.2 (missing MOUSE_MMB_SCROLL icon)

Noticed #6515
This commit is contained in:
Andrej730
2025-04-07 16:20:05 +05:00
parent 29de264b43
commit 0bbe1aad5b
@@ -682,7 +682,10 @@ class PolylineOperator:
for action, settings in instructions.items():
if settings["icons"]:
for key in settings["keys"]:
self.layout.label(text="", icon=key)
if bpy.app.version < (4, 3, 0) and key == "MOUSE_MMB_SCROLL":
self.layout.label(text="MMB")
else:
self.layout.label(text="", icon=key)
self.layout.label(text=action)
else:
key = settings["keys"][0]